- This topic has 7 replies, 2 voices, and was last updated 11 years ago by support-michael.
-
AuthorPosts
-
BryanBudelonMemberHello.
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.
support-michaelKeymasterSee 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.
BryanBudelonMember@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.
support-michaelKeymasterIn 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
BryanBudelonMember@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.
support-michaelKeymasterre: 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.
BryanBudelonMember@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.
support-michaelKeymasterYou 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.
-
AuthorPosts