So Im trying to connect to Apple Music from an iOS device using a react native application, There is an API present for doing the same but I need to call a function from the storekit framework ? to make personalised requests.
Apple Music API : https://developer.apple.com/documentation/applemusicapi
Function to be called : https://developer.apple.com/documentation/storekit/skcloudservicecontroller/2909079-requestusertoken
Im not sure how to go about this, I'm a beginner at React Native, could you guys help me out
UPDATE:
So I figured I need to make use of something known as React Native Modules ?
More here : https://facebook.github.io/react-native/docs/native-modules-ios#content
still trying things out, please feel free to add or correct me, this is still a work in progress
Okay so i finally figured this out,
I had to create functions on Objective-C and pass them over to React native using the RNBridge, explained more in 'Native Modules'
So i had to create functions for checking authorization and requesting authorization, and a function to get the User Personalized Music Token,
The developer token used was encrypted on my back-end that is running on python
Related
I'm building a Native app with React Native. I was once a web programmer and it's my first time using React Native and making native app especially which is going to be actual product and serve for normal users. During my struggle, I've encountered some issue that I, as a former web programmer, can't find a way out.
In my app, I call some APIs that any other app would/could be using, like Google Maps via react-native-maps library. My API keys are saved at files that are used when actually build the app, info.plist and AppDelegate.m ( building iOS app first by now ). I've thought that would be safe enough. But I recently find out it might not.
After reading some articles about getting rid of secret informations from native apps, I've tried hard to find a way out. Thought about using .env, getting api keys from backend server, etc. couldn't use .env, and can't find a way to call API, sending API keys ( not containing them as a build meta data ).
So here's my question. How can I keep my secrets safe for react native app?
I guess it depends on what kind of secret and API we are talking about.
With Google Maps is it possible to restrict usage to specific apps or domains which makes it safe to bundle the key in the app, read more here: https://developers.google.com/maps/api-key-best-practices#application_restriction
In situations where the app itself does not need the make the request itself, an alternative would be to let the server make the request and forward the result to the app.
In other situations where nothing from above works, you could send the secret from your server to an authorized user. Be aware that the user could then read the key but at least you don't need to bundle the key into the apps which also makes it possible replace the key if needed.
I want to make a Simple App. I’m a beginner in Swift, with Just basic knowledge, But I’m Very Good at PHP and JS, So basically, programming is not foreign to me.
The App should cowork with my website and it should do Only one thing. When person visits my web, I get a notification on my iPhone. Simple as that, yet I have no idea how to make it.
Any ideas, recommendations?
Any help Appreciated.
Thanks.
Dave
I think the easiest way will be to use OneSignal service for Push Notifications. When somebody enters your site, you call method on OneSignal API via your PHP code. And it sends push to your app.
OneSignal API is here:
https://documentation.onesignal.com/docs/onesignal-api
Documentation about iOS integration is here:
https://documentation.onesignal.com/docs/ios-sdk-setup
It is free and easy to use.
That would require a bit of PHP and SQL (and everything similar). You can check out Google Analytics.
We're trying to integrate the Facebook SDK just so we can track installs and the effect of Facebook ads on our mobile game on iOS.
From what I've been reading it sounds like the purpose of calling FB.Init() is to give back a page to display to the user to log them into Facebook. That's not really what we're interested in so we just ignore it. Our game doesn't need or want to log anyone into Facebook -- merely to track the install of the app by App Id. Do we even need to call this?
Is it enough merely to include the SDK and set up the settings file in our app for iOS builds?
Yes, you have to call it.
This method is used to initialize and setup the SDK. All other SDK methods must be called after FB.Init(), because they
won't exist until you do.
Objective: i want to fetch my custom parameter(referrer) from iTunes link upon installation of my application in device.
iTunes links look somethings like this:
https://itunes.apple.com/in/app/complete-gym-guide-lite/id550449574?mt=8
If i append my parameter say(&referrer=xyz)at the end and i open this url in ios safari browser then it will prompt to download the application.
Confusion: will app store send my parameter(referrer) to my application on launch so that i can fetch it in my application and use it.
In case of Android play store link look like this: http://play.google.com/store/apps/details?id=&referrer=guid%3D%guid%
As you can see referrer parameter at the end of url. Once app is installed in device then play store will send this parameter to app using INSTALL_REFERRER broadcast receiver. We can use this parameter.
What i tried OR Other people doing for conversion tracking: Other people are simply sending static data to their server at the first time opening of app and maintain a flag in NSDefault to make sure that app does not send same data again. I can also do the same as well as alternate ways suggested in below links but i want to do something with custom parameter.
I have already seen below links:
iOS - track which ad campaigns my installs are coming from
Tracking iOS installs from multiple marketing sources
Please help me out.
As #Aditya said, for now, Apple is not sending any referrer (or params) from iTunes to installation.
The only way you have it's to use a third party sdk to get your installations.
I have been working on a own sdk to get this but the way to get any info it's really hard and not really confident to use it. So endly we used some third party which are using many techniques to getting this (as fingerprint data, App2App methods, etc...)
I have tested appsflyer sdk and facebook sdk, they work as expected, use this or any else you prefer.
Hope this helps
Our SEO team has requested that I add Google Conversion tracking into our apps.
They sent me the below text. Anyone with an idea of how to implement this via Monotouch ? I don't really follow what the snippet does, so not sure how to re-write it ? And the Google SDK is in Obj C ?
Any ideas ?
Below are the instructions on how to implement Conversion Tracking to Track actual App Downloads. The App Developer has to implement this.
Step 1: Download and import this SDK into your Xcode project http://dl.google.com/googleadmobadssdk/googleconversiontrackingsdkios.zip
Step 2: Make a call from the app that you'd like to track. Add the following code to your application:didFinishLaunchingWithOptions: method.
Learn more:
http://adwords.google.com/support/aw/bin/answer.py?answer=115794&hl=en_US.
// Google iOS Download tracking snippet
// To track downloads of your app, add this snippet to your
// application delegate's application:didFinishLaunchingWithOptions: method.
For some reason my initial Google searches came up with nothing, but some more research yielded the following code, which looks promising.
https://bitbucket.org/kirk/google-conversion-tracking-monotouch/commits/6f18a0a9555f93b868fa8f516df9c694