Link to app in the Store with UWP - hyperlink

As I understand the following doesn't work anymore for UWP:
ms-windows-store:reviewapp?appid=[app ID]
Has anyone got the latest on how to do this?

You can refer to the MSDN in this link:
https://msdn.microsoft.com/en-us/library/windows/apps/mt228343.aspx
Especially for UWP, I suggest to use "ms-windows-store://review/?ProductId=".
The product id is much more useful than PFN.

You can use the below code to accomplish the task in UWP.
var uriRate = new Uri(#"ms-windows-store:REVIEW?PFN=" + Windows.ApplicationModel.Package.Current.Id.FamilyName);
await Windows.System.Launcher.LaunchUriAsync(uriRate);

There are a couple of good articles on this topic on the official documentation site: Link to your app and Launching the store app
In short, you can still use the store protocol, but you don't use appId you need to use productId which you can get from the developer dashboard.
ms-windows-store://review/?ProductId=[pid]

Related

There any way to open *UberEats* app in a specific restaurant page using URL Schemes or anything else?

There any way to open UberEats app in a specific restaurant page using URL Schemes, Deep link, SDK or anything else?
I found that and works with current version. Url schema:
ubereats://
on the current app you can share a store item and the deeplink is:
ubereats://store/browse?client_id=eats&storeUUID={STORE_UUID}&itemUUID={ITEM_UUID}
or simply open the store:
ubereats://store/browse?client_id=eats&storeUUID={STORE_UUID}
or apply a promo code:
ubereats://promo/apply?client_id=eats&promoCode={PROMO_CODE}
I hope to help
For me this works:
ubereats://promo/apply?client_id=${uberEatsClientKey}&promoCode=${PromoCode}
It's the same as Uber. You can check the documentation of Uber.

Flurry Crash Reporting not working

I have tried like below in my app delegate. Can you please tell me what's going wrong here:
Flurry.setDebugLogEnabled(true)
Flurry.setLogLevel(FlurryLogLevelDebug)
Flurry.setEventLoggingEnabled(true)
Flurry.setBackgroundSessionEnabled(true)
Flurry.setCrashReportingEnabled(true)
Flurry.setShowErrorInLogEnabled(true)
Flurry.startSession("KEY")
As stated in this post please check with the support from Flurry first, to make sure that this isn't normal behaviour. The post also states that it can take up to 8 hours for a crash to appear in the dashboard.
Flurry support page : https://developer.yahoo.com/flurry/support.html
Make sure to include your API-key in the email, so they can actually check on your problem.

Swift - NSURLSession downloading in background?

I'm creating an iOS app by swift that is as same as the AliExpress iOS app.
This App has ability that connect to our site and download all of data from JSON api online.
Now, I wanna download the images of the icons and banner slider from our site by JSON api in main page. But I don't know how i can do it. Do I use queues or background functions like in android? Also, I'm an android developer and i know how i can do this in android. You can guide me by this way ,too. please guide me by sample codes or description of its logic.
Please refer following link for tutorial
http://www.raywenderlich.com/51127/nsurlsession-tutorial
Apple documentation can be found on following link
https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSession_class/
Swift example can be found here
http://jamesonquave.com/blog/making-a-post-request-in-swift/
I have also created a demo for the same
https://github.com/Gagan5278/SessionDownload
Let me know if you want more on this.
You have the seed of your answer in the title of your question. You want to create an NSURLSession and add NSURLDownloadTasks to it. That class does all the work for you.
A quick search on Github reveals this repository that claims to offer an async download queue in Swift:
https://github.com/Gurpartap/Cheapjack
(I haven't used that one. You can either build it into your project or look at the code and use it to implement your own download sessions.)
There is also AlamoFire, another swift library that has built-in JSON support.

Get referrer string for Universal Link?

I implemented Universal Links in our iOS 9 app and they work by calling a method in AppDelegate.swift, in which I get an NSUserActvity with an URL attached to it.
Is there a way to get the (HTTP-) referer? I need to know on which website the user has tapped the link that opened the app.
You should be able to use NSUserActivity > referrerURL instance property. See https://developer.apple.com/documentation/foundation/nsuseractivity/2875762-referrerurl.
No, there is no way to get the referrer.
An Apple employee made that pretty clear on the developer forums: https://forums.developer.apple.com/thread/65423
They say that the only way to get some kind of referrer would be to append it to the URL. Maybe take a look Google's campaign tracking URLs (utm_...).
I found another interesting solution if you need to support iOS 9 and 10 - https://appmetrica.yandex.com/blog/referrer-based-tracking-dlya-ios-tochnaya-atributsiya-dlya-lyubogo-istochnika-trafika.
Since iOS 11 I guess can be used NSUserActivity > referrerURL.
In short:
SFSafariViewController uses the same cookies as Safari app.
You can open invisible SFSafariViewController inside your app.
If your site contains some cookie - use Universal Link to pass it back to the app.
Though it requires to implement something like tracking link on your site.

Possible to launch Apple's default weather app from my application?

One of my client wants to open Apple's native weather app from our application. After few I don't see a possible way, unless we need to go with any 3rd party apps which provides custom url scheme.
http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007899
It would be great if someone confirm or give me a lead if it is possible.
Its not possible, the weather app doesn't have a known URL scheme and I dubt that it has an unknown one.
The website handleOpenURL is an excellent resource for custom iOS URL schemes; use this link to search for the known Apple app schemes.
Unfortunately the weather app is not among them.
Another couple of sites with schemes (handleOpenURL seems to be the most complete, but it can't hurt to check the others):
app lookup
Akosma iPhone URL Scheme Wiki
You can open the weather app with this URL: weather://
Here is a codepen demo I got to work: https://codepen.io/irom1/pen/KKeZBMW
Open weather
I found another site for sharing the url scheme - http://schemes.zwapp.com/

Resources