I am finishing up the development of an app using Cordova. I have installed the AppRate plugin and it is working as it should. However, when running the app on an IPhone and opening up the rate page for the app, there is no back button. Android and Windows both have a way of getting directly back to the app, but in ios, there is no way without closing the browser and clicking on the app again. Can anyone help. I would like a back button or a button to close the browser
Related
I am building an iOS app in which I have a webView i.e. UIWebView not WkWebView and I have some JavaScript code that uses AngularJS for UI manipulation.
I run my app in the iOS simulator from Xcode and then open Safari and go to Develop -> iOS Simulator -> AppName -> index.html, which attaches the safari web inspector to the web view. In the inspector under the resources tab I select the relevant JavaScript file and put a breakpoint for the JavaScript code that I want to start from.
What happens now is when I navigate to the part of my app when the JavaScript code is executed, it pauses in the web inspector just fine. The problem is, I cannot navigate through the code: it just freezes. I cannot unpause it.
What I do notice in my Xcode console is this error
Multiple locks on web thread not allowed! Please file a bug. Crashing now...
This doesn't happen all the time, just 60-70% of the time when I am working on my app. So this is my first iOS app and I am building it using Swift.
This seems like I have a missing link somewhere. But any tips or anything would be great.
My app starts wonderfull when I directly deploy it on the tablet via cordova run android.
However, If I leave the app and come back by tapping the app icon on android, the app fails to start (displays the same screen I ususally get when I deployed a JS syntax error). How can I detect that or solve that?
I am writing a phonegap app for android and iOS and I'm handling the backbutton as follows with various functions in my app:
$(document).unbind("backbutton");
$(document).bind("backbutton", myFunc);
Some of the functions use window.location.replace("XXXX.html"); in order to redirect to a new page.
This all works perfectly in a browser using Ripple Emulator but when I use genymotion or an android device I get some strange results where the app will move to the wrong pages or exit the app when it should go back a page.
Any ideas? :(
I am developing a standalone web app that installs on iphone homescreen.
It has a calendar function that the user can download an *.ics file directly into the iphone.
However, that cannot be done from within the standalone web app, so I have a punch out url to mobile safari so that it will work.
All that works fine...
However, after the ics file is loaded into the calendar and closed, it returns to the mobile safari page where I in turn close that by using onclick='self.close()'. That works fine too...
After that page closes I want to then launch back into standalone app so the user is returned to where they were...
How do I launch my own web app from a mobile safari javascript code?
All the searching shows me how to go from standalone to mobile safari,...I want mobile safari to standalone.
I have seen the windows.location="myapp://myparam" but cannot find proper syntax to get it to work.
What is the syntax for this?
Any other solution is well received too...will need to find Android solution too, but it is not as crucial...
Thanks
I want to invoke a ios application from browser. If the app is installed, it should redirect to the app. Otherwise, it should continue in the browser it self, with out showing an error pop up message.
I tried setTimeOut() in javascript, it not working.
Help me please...
check here How to register a custom app opening URL scheme with Xcode 4?
register a URI to your app, then you can open it via javascript in mobile safari