What are battle tested ways to do mobile analytics in react native? - react-native

Things like in app feature usage (across iOS and Android)? Please show examples of how things have been measured if you have them.

I recommend to use a Google Analytics Bridge for react-native.
Google Analytics Bridge is built to provide an easy interface to the native Google Analytics libraries on both iOS and Android.
Why a native bridge? Why not use just JavaScript?
The key difference with the native bridge is that you get a lot of the metadata handled automatically by the Google Analytics native library. This will include the device UUID, device model, viewport size, OS version etc.
You will only have to send in a few parameteres when tracking, e.g:
const GoogleAnalytics = require('react-native-google-analytics-bridge');
GoogleAnalytics.trackScreenView('Home');
GoogleAnalytics.trackEvent('testcategory', 'testaction');

Related

Possible for Expo/React Native to save large amounts of encrypted data to iCloud?

I'm developing an Expo app which stores large amounts of users private data, currently only within the app. In order to allow the user to migrate their app data between devices, we need to store this in iCloud.
I'm currently unable to find documentation or article that explains how to do this.
Is it not currently possible for Expo to save data via the iCloud API?
there are some ways to save the data in the iCloud, one way you write ios native module
for iCloud API, then use it in the js. the detailed guide you can see here.
the other way is to search the third library which is used for react-native.for example:react-native-icloudstore. but it is old.
besides them, you can use CloudKit JS. use it in the native app webView.
you can go to the official site to learn it
In the end, if you can write native ios code, I suggest you use the first way. if you can not write it, you can search ios native relate library, then make your own
native module for ios

What are my options for saving GAME-specific Data for my React Native App across Android and iOS?

I have a React Native app that integrates with Google Play Services. It saves Achievement info in particular and I'm looking to use their Quests and Saved Game service as well.
That works fine for Android, but I'm wondering what is available for iOS since I would like have my game be on both device platforms.
In an ideal world I would love a Generic Game service that already has the data modeling like Google Play Services, and not just a generic could db storage.

using firebase geofire in IOS App

I am to looking for a quick way to implement a dynamic location based filtering of points of interest feature in an iOS App - where a user's location continuously changes and as a result the points of interest will continuously change.
I see that firebase geofire has a similar feature but written in .js. Can you advise if this can be leveraged in an iOS App with no webviews?
GeoFire now has an Objective-C library!

Apple/Google Maps SDK for getting directions data

I am trying to build an iOS application that will basically give me distance and route to how to go from my current location to a specified destination.
Does Google Maps SDK or Apple Maps SDK expose such an API to get directions/navigation data without leaving the app?
I know Google Maps API has directions data REST API, however I was looking for more integrated solution that utilizes MapKit directly, if any. Thanks for reading so far.
As far as I know, Apple is not supporting GoogleMaps in MapKit. I used GoogleMaps, and I need to import all libraries and add the functionality by code.
But it supports Apple Maps.

iOS third party maps

I'm building an iOS app using MapBox for maps and MapQuest for directions data. Are there any limitations as to what an App can use or display in terms of third party (non MapKit) map data? Will an app that displays maps and directions from other sources be approved for the App Store..?
I am the developer of the MapBox iOS SDK. Many apps have been approved by Apple with alternative maps and/or directions. Some examples include:
http://thesilenthistory.com
http://www.mapofthedead.com
http://www.bassproshopsgames.com/myguide-Hunt/bass-pro-shops-myguide-hunt
http://mapcraftapp.com
http://www.messageme.com
http://moves-app.com
https://itunes.apple.com/us/app/london-tube-tamer-transport/id558106521?mt=8
Additionally, all but the last use MapBox.
Here there are other alternatives that can help you on both sides:
skobbler iOS SDK- they offer offline maps, route calculation, turn-by-turn navigation and a free tier plan.
cartotype - they offer vector data, maps and routes can be displayed as integrated map layers or overlays.