Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    bsorrentino
    @bsorrentino
    after that ... you could try to simulate solution using webview
    however to enumerate all function refers here
    riseworld27
    @riseworld27
    ok
    thank you for your help
    bsorrentino
    @bsorrentino
    no problem ... i like help dev
    riseworld27
    @riseworld27
    I will let you know with the result tomorrow
    bsorrentino
    @bsorrentino
    ok ... FYI, I'm developing an AngularJS app using auth token and I use LocalStorage to set & retrieve it
    riseworld27
    @riseworld27
    great
    Angular and React is popular JS framework recently
    bsorrentino
    @bsorrentino
    yep
    riseworld27
    @riseworld27
    hello
    how are you?
    bsorrentino
    @bsorrentino
    Fine, news?
    riseworld27
    @riseworld27
    oh, not yet
    I am testing now
    I will let you know if something is changed :)
    riseworld27
    @riseworld27
    hello @bsorrentino
    it is working :)
    by the way
    I set that func in webViewDidFinishLoad delegate method
    in first time, it still loads login screen
    when launch app again, it loads dashboard page
    bsorrentino
    @bsorrentino
    Congrats.. u r very close to a final solution
    riseworld27
    @riseworld27
    how should i handle this issue ?
    bsorrentino
    @bsorrentino
    I haven’t enough details to give you suggestion
    riseworld27
    @riseworld27
    we inject javascript function when finish loading of webview
    so at that time, actually login screen is still there
    when next launch of webview, it goes to dashboard page without login
    I want to load dashboard page in first launch of webview
    bsorrentino
    @bsorrentino
    It’s clear that when you perform operation the auth stuff is already executed
    So, the solution is not simple and require a deep knowlege about the javascript loaded in the first page
    If you are using the localstorage you could load a custom first page that set localstorage and than redirect to home page
    bsorrentino
    @bsorrentino
    However, as said, without to see code it is very hard to find a solution
    riseworld27
    @riseworld27
    please check this code
    bsorrentino
    @bsorrentino
    The Objc code looks good, but I think that you have call the home page instead directly the login page
    This, probably, will give time window so that the token is stored before login call
    riseworld27
    @riseworld27
    Hi
    I solved problem by loading two webviews in two pages
    bsorrentino
    @bsorrentino
    Ok, i suggest you, when have to mix native with web, to take a look to cordova
    Paolo Dina
    @paolodina
    wow... got window.broadcaster populated :D let's see the java part now...
    @bsorrentino thanks for the plugin, hope it can be useful for my use case too (listen to incoming calls and sms, and got the number)
    btw, italian or english in this channel?
    Paolo Dina
    @paolodina
    @bsorrentino if I can bother you again, https://pastebin.com/9zrgT8Pc
    Paolo Dina
    @paolodina
    (Api 26 Oreo 8.0)
    Paolo Dina
    @paolodina
    nvm, not caused by broadcaster plugin, targeting api 25 seems to fix. just wonder what to do when api 25 will be deprecated and not used anymore
    bsorrentino
    @bsorrentino
    Hi thanks for using such plugin
    bsorrentino
    @bsorrentino
    Please, If you have problems or suggestions consider to open an issue in the project itself
    So help me to arrange work
    Usually being a plugin I use the lowest api to cover greater number of devices