Advertiser identifier using Trigger.io? - trigger.io

Here's a question:
How do you get the advertiser identifier using Trigger.io?
I need it to prevent fraud.
I tried the documentation online, but there is no mention.

This isn't currently exposed in any of the Trigger modules.
However, it would be possible to write your own native module to get access to it, see https://trigger.io/docs/current/api/native_modules/index.html for details.

Related

What sections of Apple Health app are available via the x-apple-health:// URL scheme?

I want let users view the Weight section of Apple's Health app to allow them to see detailed data, etc. I manage to open the Health app via the URL scheme x-apple-health://, but I would like to send them directly to the right place, e.g. x-apple-health://HealthData/measurements/Weight. I have had no success after trying different paths that made some sense.
Anyone has a reference on this?
Apple has not documented the x-apple-health:// scheme for use by apps. Attempting to use it is like using SPI - even if you find something that works now, it is likely to break in a future version of iOS. You should file a Radar with Apple to request an API for this purpose.

WKWebView Connection with Wallet?

Is it possible to send a QR code from a WKWebView based iPhone application to iPhone wallet?
I tried to find questions and answers on Google, but I didn't find any answers or solutions.
You will need to compile and sign a pass bundle (for security this should be done on a server, not in the app), download the bundle to your app, and then invoke the PKAddPassesViewController to add the pass to the user's wallet.
There's very comprehensive documentation available here, or you could use a service provider to handle the server side pass creation and management.

Does Reachability need to be included when using Twitter/FB sharing sheets?

Does Apple's Reachability class need to be included in an app that allows sharing via the built-in Facebook and Twitter sharing sheets? That's the only area of my app that would require any kind of network call, but since it's a system level function and my app isn't directly talking to Twitter/Facebook, I thought I might not need to include it.
On a related note, if my app sends a user to Safari for a help page, do I need to include Reachability for that? My app wouldn't be making any network calls there, either.
As far as I know, reachability is used to check the availabilty of internet connection. This is usually useful if you want to make sure that the device currently have internet connection before attempting any network-related operation. However, this is not obligatory.

Programmatically create pass for passkit on device?

I am trying to find a way to generate a pass for passkit on the device its self after it received the information to put in a pass over the network.
Does anyone know if this can be done / how to do this?
Refer to: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/PassKit_PG/YourFirst.html#//apple_ref/doc/uid/TP40012195-CH2-SW1
Basically: Not easily (if at all), you need to be able to sign your pass using signpass, a command line utility in order to make it readable by devices. This will cause a lot of hassle and distress, as you can't run another process on iOS, and to convert the signpass code to run on the device might not be possible either.
What I would suggest is to sign your pass on the server/wherever the data is coming from, and send both the information and the generated .pkpass to the device. This is how it was designed, and how it should be used. Read the docs for more information, they're very clear.
Actually, Apple have stated the security problems when signing passes in iOS. This is because the certificates needs to be packaged with the app. And you don't want to expose certificates to users like that.
Just like WDUK suggests, implement a simple pass signing and distribution server that your app can request passes from. This is also very helpful when you want to update passes added to devices.
I'm sure you can find a server implementation that fits your needs on GitHub.

How to get the details of apps installed in a device in my app

is there any way i can have an access to the name of applications that are installed in the current device in my app. is there any api's to get hold of this.
thanks
Not with documented methods. Why do you want to know what other apps the user has installed anyway?
With undocumented methods, you could use (usual warnings apply):
SpringBoardServices:
SBSCopyApplicationDisplayIdentifiers(false, false);
GraphicsServices:
GSSystemCopyCapability(kGSApplicationInstallationCapability);
liblockdown:
... lockdown_copy_value(kLockdownNotificationApplicationInstalled); ...

Resources