I know there's no way to add a home screen bookmark automatically within a mobile web app, however, is there a way to DETECT if one has been created?
You could prompt the user to bookmark your app and then save their response (seen here on Mobile Boilerplate). This would allow you to "detect" if they have already added it.
The Mobile Bookmark Bubble is a JavaScript library that adds a promo
bubble to the bottom of your mobile web application, inviting users to
bookmark the app to their device's home screen. The library uses HTML5
local storage to track whether the promo has been displayed already,
to avoid constantly nagging users.
Related
I've run into an annoying problem where my Twitter share button on my iOS mobile app, using "SuperSocializer", it brings up the share sheet instead of taking me right to the twitter app itself. The other social media buttons I'm using take me right to their respective mobile apps.
However, in the Safari browser on my mobile device, it takes me right to the Twitter app when the button is pressed.
How do I prevent my twitter button from bringing up the share sheet but instead, take me to the twitter app like the it does in the mobile browser?
I am using Google Map in an iOS app built for a client. I know that the logo at the bottom cannot and shouldn't be removed at any time. I am wondering whether I can disable the click action and stop the app jumping or not, since the client don't want the app to open an external app.
I'm developing an iOS 7+ app that I need to offer the option of navigating to a certain web page to let the users to fill in a form there, and after that to come back to the app's view where the user was.
Is it possible to programmatically open Safari with a given url? If it is, I suppose that then there is no way to automatically redirect the user to your app from there... right? Is then a UIWebView the only option? Is it possible to navigate back or dismiss the view with the UIWebView without the need of user interaction?
Thanks
You can open links in Safari as detailed in this post How to launch safari and open URL from iOS app
I don't believe you can set a 'callback' and have it return to your app on completion, as you have no control over the user once they have exited your app's sandbox.
Opening the link in UIWebView would provide control, as you can utilize the UIWebView callbacks.
we are developing hybrid application on Worklight.
After the user launches the application on iOS, he will see the login screen, providing his credentials, he is inside our application.
Now, if the user clicked the home button for iOS before "logging out" from the app, the iOS will take a snapshot and store it inside the device cache.
By using IExplorer, I can see this screen cached, which in our situation a high critical issue.
How can I a override this screen with a white screen, in case the user clicked the home button of the iOS device it will be populated immediately, and the device will not snapshot the user main screen.?
Is there any thumbnail I can add to my nativeResource folder for iOS to solve this issue?
thank you.
I encourage you to look at the Worklight Knowledge Center. In most cases, you will find your answer.
To control the snapshot taken by the OS when moving to the background, you need to use the following API methods, depending on your needs:
WL.App.BackgroundHandler.setOnAppEnteringBackground and WL.App.BackgroundHandler.setOnAppEnteringForeground
I have to update my app to handle the situation as per the image shown. It used to work when I logged into the website and the login for was just displayed as a normal website.
But now since the update it comes up as a UIAlertView, I have seen this similar when I log into my router at home.
However the UIWebView in my app does not show this alert. Mobile Safari does show this.
Is there any way to get the UIWebView to show this or is it just suppose to come up when required?