How to use webview or similar control in Watch OS? - ios

Example app: https://itunes.apple.com/us/app/watchup-for-whatsapp/id1320596975
I think this app might load whatsapp webview and parse responses from web and showing in whatsapp app, so any way to make webview or similar control that work in watch app?
EDIT: Can we load webview in iOS app in background and send parsed response to Appel Watch app? is it possible? I don't want to show webview in iPhone app, I just want parsed response and to show it in watch app in tableview app.

Related

How to trigger app clip from website manually via custom url

I want App Clip to be launched from my website.
Currently App Clip is working perfectly fine because When I open my website on iPhone safari, it automatically shows a banner on top with a button that says: Open App
What I need is that I want to develop my custom banner with a button on my website from where I can trigger App Clip manually because sometimes that banner from App Clip appears a bit late, so I don't want to be dependent on that.
Any idea regarding this? I just need a direction or reference to some documentation that's all.
Thanks
I've faced the same issue previously and as I understand you can launch the App Clip only from smart banner, you can't use universal link as a trigger for opening the App Clip

iOS app deep linking: Return to previous app or access current url scheme of current app

I'm developing a custom keyboard for iOS. When I'm e.g. in Safari using my custom keyboard, I have a button in my keyboard to jump to to keyboard containing app. Then in my keyboard app I have the iOS specific "<- Safari" button in the top left corner to jump back to Safari.
Is it possible to programmatically jump back to the source application (in my example Safari)?
Or can I send the original url scheme to my containing app and then open the previous app (could be ANY) by the url scheme?
It must be somehow possible, because the app Scandit Wedge does exactly what I want. I created an empty test app without any url scheme and with the Scandit Wedge keyboard I can go to Scandit app, read barcode and it goes automatically back to the source app.
Here's a video I recorded:
https://www.youtube.com/watch?v=UiHH4NanlkA
To achieve this you have to implement inter-app two way communication using x-callback-url. x-callback is just a "protocol" to format the NSURL to ease the data processing at the receiver end and also allowed the source app to receive the correct callback function. You can explore more this with evernote and this tutorial.

How to come Ios App to foreground from background

I working on swift for Ios App. I want to phone user connect specific wifi. So i open iphone wifi settings by NSURL like this. After then my app go to background and i control ssid every 500ms in background by background task like this. When phone connect the specific wifi i can see this status and i stop background task. But i cant comes my app to foreground. I tried open my app use NSURL metod like this video (i add custom url my info.plist and add application function in my appdelagate) but my app has no return use this metod.
unfortunately bringing an app from background to foreground is not possible. You can however send a notification or a badge for the user to click and open the app. The user should have notifications enabled for this to work.
Happy Coding!

Performing a task through a website and going back to an iOS 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.

How to use the UIWebview with enabled cookies?

How to use the UIWebview with enabled cookies? I am using lot of web apps in my iOS app, each app has their own URL to load their app.
All web apps are displayed with their name and app icon in a UITableView (app list). Whenever user tap on app from the app list, we are loading that app in UIWebview.
If user again tap on the same app we are loading from cookies not loading from the start.
In this scenario how to use UIWebview?
Normally UIWebview took lot of memory, if we opened lot of apps memory increased huge.
Please suggest how to use UIWebview with effective manner.

Resources