Skip to main content

Detect if your Native app is installed from your web site

As the capabilities of the Web become more aligned with what was once the domain of native experiences there are an increasing number of times where a developer will want to reduce the confusion for their users who have both the web and native apps installed.

In Chrome 59 we are introducing a new API called getInstalledRelatedApps(). This new API lets you determine if your native app is installed on a device.

Paul Kinlan @ Medium.com

Comments

Most Favorite Posts

WKWebView - The better UIWebView

WKWebView Framework API Differences WKWebView ↔︎ UIWebView JavaScript ↔︎ Swift Communication If your app is little more than a thin container around web content, WKWebView is a game-changer. All of that performance and compatibility that you've longed for is finally available. It's everything you might have hoped for. If you're more of a native controls purist, you may be surprised at the power and flexibility afforded by the new technologies in iOS 8. It's a dirty secret that some stock apps like Messages use WebKit to render tricky content. The fact that you probably haven't noticed should be an indicator that web views actually have a place in app development best practices. NSHipster

Validity Time Auto-Renewables in Sandbox

The subscription durations, sandbox durations and incentive durations of auto-renewables. Hint: In Sandbox the validity time differs from live environment!!! Durations Sandbox Duration Incentive Durations (optional) 7 days 3 minutes 7 days 1 month 5 minutes 7 days, 1 month 2 months 10 minutes 7 days, 1 month 3 months 15 minutes 1 month 6 months 30 minutes 1 month, 2 months 1 year 1 hour 1 month, 2 months, 3 months After 6 extensions the abo is cancelled automatically in the sandbox environment.

Cheat sheet for working with iOS, iTunes, AppStore auto-renewables or Android, GooglePlay subscriptions

How to test auto-renewable subscriptions on iOS and Android? Test purchases Sandbox Live iOS Sandbox account TestFlight internal/external Android License testing group via Alpha Channel Release Management > App releases > Manage Alpha > Manage testers License testing account via Alpha/Internal Channel Settings > Account details > Gmail accounts with testing access Reduced test subscription time Test subscriptions renew more quickly than normal to aid in testing. The following table identifies the testing renewal times for subscriptions of various durations. Note: Test subscriptions will renew a maximum of 6 times. iOS AppStore Connect Note: Test subscriptions will renew a maximum of 6 times; after that you can continue testing with the user. Actual Duration Test Duration 1 week 3 minutes 1 month 5 minutes 2 months 10 minutes 3 months 15 minutes 6 months 30 minutes 1 year 1 hour Android Google Play ...

UI Automation

There is a known issue when using the performTaskOnHost API in a UI Automation script. If the task being performed with the API outputs excessively (say, thousands of lines of text) to standard out or standard error, the task may deadlock until the timeout is reached, at which point it will throw a javascript exception. The lock() and unlock() functions of UIATarget have been replaced with the lockForDuration( ) function. Starting in iOS 5 beta 2, you can now trigger the execution of an UI Automation script on an iOS device from the host terminal by using the instruments tool. The command is: instruments -w device id -t template application When using the cli instruments for UI Automation you can now target the default Automation Template and pass the script and results path into the tool as environment variable options. For example: instruments -w device_id -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/...

How to link to TestFlight App in iOS

There are two things you need to do. First, check to see if TestFlight is installed. Then create a new link to your app. NSURL *customAppURL = [NSURL URLWithString:@"itms-beta://"]; if ([[UIApplication sharedApplication] canOpenURL:customAppURL]) {     // TestFlight is installed     // Special link that includes the app's Apple ID     customAppURL = [NSURL URLWithString:@"https://beta.itunes.apple.com/v1/app/978489855"];      [[UIApplication sharedApplication] openURL:customAppURL]; } This special https://beta.itunes.apple.com URL will be opened directly in TestFlight. Finally, if you are using iOS 9 (or later), you need to make an addition to your Info.plist to get the canOpenURL: method to work. If your app is linked on or after iOS 9.0, you must declare the URL schemes you want to pass to this method. Do this by using the LSApplicationQueriesSchemes array in your Xcode project’s Info.plist file. For each URL scheme you wan...

Optimize App Retention with the Hooked Model

Nir Eyal explores how applying the Hooked Model drives customer retention and engagement by fostering good habits Trigger. An event that encourages someone to act, which is either an: External trigger: something in the environment — a ping, a ding, or a ring — that alerts a person to do something. Internal trigger: the desire to escape from an uncomfortable emotional state. Action. A behavior that anticipates a reward — opening an app, scrolling a feed, checking a dashboard, or playing a video. The simpler the behavior is to accomplish, the more likely the user is to do it. Reward. The user gets what they came for. Investment. The user puts something back into the product that makes it better the next time they use it. https://www.amazon.de/Hooked-How-Build-Habit-Forming-Products/dp/0241184835