facebook

Usage phoneui.showURL

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #343571 Reply

    BryanBudelon
    Member

    Hello.
    Two questions about this function:

    1 – It’s possible check if the user closed this “pop-up” of showURL with button Done?
    Because wanted using the function gotoPage in moment that user close.

    2 – Has how activate the navigation arrows of ShowUrl?

    Thanks for attention.

    #343594 Reply

    support-michael
    Keymaster

    See the following screenshot and attached .mobi file that demonstrates.
    Note this code snippet was created and tested with MobiOne 2.5 milestone-3 on ios device.

    Note if you test this on the new Mobile Web Simluator there is a quirk in the Simulator that will not run the “exit” event handler on the first attempt. Thereafter it runs but there is an issue with multiple “exit” handlers being accumulated across calls. See attachment iab-events.mobi See attachment IaBEventRunJS-screenshot.png

    Attachments:
    You must be logged in to view attached files.
    #343618 Reply

    BryanBudelon
    Member

    @support-wayne wrote:

    See the following screenshot and attached .mobi file that demonstrates.
    Note this code snippet was created and tested with MobiOne 2.5 milestone-3 on ios device.

    Note if you test this on the new Mobile Web Simluator there is a quirk in the Simulator that will not run the “exit” event handler on the first attempt. Thereafter it runs but there is an issue with multiple “exit” handlers being accumulated across calls. See attachment iab-events.mobi See attachment IaBEventRunJS-screenshot.png

    Got it!
    But, I wanted to go to a certain page within the app when close. How would done?

    Thanks for help.

    #343621 Reply

    support-michael
    Keymaster

    In your InAppBrowser exit event handler you can have the app navigate to a new page using:

    phoneui.gotoScreen(screenId, optionalScreenTransitionEffect)
    
    examples:
    
        phoneui.gotoScreen('m1-screen2');  //uses default transition style
        phoneui.gotoScreen('m1-screen2', phoneui.transitions.flipLeft); //use flip-left transition
    
    
    #343628 Reply

    BryanBudelon
    Member

    @support-wayne wrote:

    In your InAppBrowser exit event handler you can have the app navigate to a new page using:

    phoneui.gotoScreen(screenId, optionalScreenTransitionEffect)
    
    examples:
    
        phoneui.gotoScreen('m1-screen2');  //uses default transition style
        phoneui.gotoScreen('m1-screen2', phoneui.transitions.flipLeft); //use flip-left transition
    
    

    Thanks, managed to solve.

    But, for not create new topic, have some bugs this new version of MobiOne.
    I’m using ‘alert’ on moment of i click button goes execute one function of ‘play’ no audio player. However this no happened. And also not play the music.
    What happened? I have not changed the code.

    #343629 Reply

    support-michael
    Keymaster

    re: audio in mobione 2.5m3 – we had to revise the api somewhat. See http://www.genuitec.com/mobile/docs/highlights/2.5.0M3/2.5.0M3_highlights.html and scroll to the end to see new info on revised audio player api. An audio dev guide is being developed now.

    The underlying story is jplayer was very problematic across platforms and we made the decision to replace it with our own custom implementation.

    #343632 Reply

    BryanBudelon
    Member

    @support-wayne wrote:

    re: audio in mobione 2.5m3 – we had to revise the api somewhat. See http://www.genuitec.com/mobile/docs/highlights/2.5.0M3/2.5.0M3_highlights.html and scroll to the end to see new info on revised audio player api. An audio dev guide is being developed now.

    The underlying story is jplayer was very problematic across platforms and we made the decision to replace it with our own custom implementation.

    Had not seen.

    I tried this way:

    phoneui.activeAudioPlayer("data-m1-audio-player").jPlayer("play");

    No results.

    I wanted know if possible would download the version 2.5 milestone-2, because i have little time avaliable for modify my app for the new version of Mobione.

    #343650 Reply

    support-michael
    Keymaster

    You can rollback to 2.5M2 (hot-fix 1) using this installer: downloads1.genuitec.com/downloads/products/mobione/2.5/2.5M2HF1/MobiOne_2.5.0M2HF1a_Installer.exe

    You should uninstall MobiOne 2.5M3 before running this installer. When 2.5M2 starts up it will give you the option to upgrade to 2.5 milestone-3, just cancel the upgrade dialog and continue your use of 2.5M2.

    Note: MobiOne 2.5M2 will expire on Nov 1. We plan to ship the 2.5 production version before that time.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Usage phoneui.showURL

You must be logged in to post in the forum log in