Here is my scenario:
Launch the native app and go to sign in page of my hybrid native app
Launch chrome browser in my mobile and navigate to particular url. From there navigate to playstore.
Now make sure after clicking the open button from the playstore launches my app(from step 1) successfully.
To achieve this i have did this.
Create an appium driver instance for my native app and launch it. --> Success
Create an another driver instance for chrome browser, navigate, click the link and it will take to the app page in the playstore. --> Success
Now i need to click Open button in the playstore and check when my app has been pushed to view. --> NOT SURE HOW TO DO THIS
I am having my control only on chrome browser and my app. How i can make this happen and your help is appreciated.
Just use the driver that you have for your apk app. By default it has the track of the current focused app of your mobile (in view).
For example, if you are in your app, and now you changed to settings app or some other app, if you get the driver.getPageSource()it will give the page source of the current view automatically. Basically you have control over the current view (android apk ) through the appium.
You have set up chrome browser so simply navigate to https://play.google.com/store/apps?hl=en inside web view and verify that your app has been shipped using store search
Related
I have implement a simple code to my flutter web app:
https://developer.apple.com/documentation/webkit/promoting_apps_with_smart_app_banners
Now it shows a banner on top if app is installed or not.
If app is install it shows "Open" otherwise it shows "View" which takes to download.
Now the issue is as per the documents it says you can pass specific arguments if needed like this:
I want to know how do i check in flutter app if the app is opened from smart banner from safari and which app-argument was passed down on opening the app.
I am stuck on this issue for 3 days now.
Use native application(_:open:options:) method to get access to app-argument and Write custom platform-specific code to access it from Flutter or maybe use app_links plugin.
I configured my iOS App to handle a Dynamic Link I created using Firebase. So if I copy the generated link and paste it in Chrome's address bar, it works correclty: I get redirected to a preview page for my app with a button. Tapping on the button will open the store if I don't have the app installed, or open the app if it's already installed. When pasting the link in Safari's address bar, I get reidirected to the same page, but when I tap on that button, I am always redirected to the store, even if the app is already installed, instead of launching the app. Any clue about why this happens?
Recently we found problems that sometimes our webpage crashes on iOS. Its happening both in Chrome and Safari. Has anyone idea how to debug it, or why its happens ?
Its hard to reproduce (actually on some phone we were not able to). So we are trying turning off some components from the page. The page contains lot of HTML (20-100 pages) and some bit heavy javascript components, such as maps, street view or even graphs.
Thanks for any idea or hint. Thanks!
You can debug the webpage, when it is loading on your mobile browser(Safari).
Follow the below steps:
Connect your iOS device to MAC--> open Safari on MAC --> In the menu bar you can see Develop option --> On selecting the develop option it will show all the connected devices--> keep the menu popup open and browse your webpage on the connected iOS device.
Note : If your device doesn't show up in the develop option please enable it in iOS device settings --> Safari --> advanced --> Web Inspector.
I currently complement my web application by using URL Schemes to launch my native application. Starting with iOS 9 my users now get challenged with a popup that says "Open in app name". I have figured how to eliminate this by using Universal Links using a different domain then the app I'm launching from but have encountered an issue.
Key points
App is distributed outside of the app store as an Enterprise Distribution. So if I understand correctly smart app banners do not apply.
In case my app is not installed, my universal link web location hosts a page on how to install it.
If a user launches the app but does not have it installed they properly get my install page
Once in the app if the user presses the domain link at the top right they will not be able to launch the app again
The problem Im encountering is that if a user ever presses on the link/bread crumb at top right the app will not launch anymore. It will always direct the user to the install page. I know if I pull down on this page there is an open button that will take me to the app, or if I long press on my link I can also have it launch my app. However, I will not be able to get my users to understand this.
Is there a way to turn off the link on the top right?
I have a web app that allows the user to add the web page to his home screen on the iphone.
That functionality exists with Safari.
Now they released the chrome browser for the iphone too. My question is how can I instruct the user to add the web page to his ios home screen. The chrome browser doesnt seem to have that functionality..?
Can I add a shortcut from chrome options so that it would appear on the iphone home page?
For completeness:
https://developer.chrome.com/multidevice/android/installtohomescreen
Does Add to homescreen work on Chrome for iOS?
No.
Can't change the default browser, but try this (found online a while ago). Add a bookmark in Safari called "Open in Chrome" with the following.
javascript:location.href=%22googlechrome%22+location.href.substring(4);
Will open the current page in Chrome. Not as convenient, but maybe someone will find it useful.
Source
Works for me.
The is no API for adding a shortcut to the home screen in iOS, so no third-party browser is capable of providing that functionality.