Skip to content

Instantly share code, notes, and snippets.

  • On android we can create service and do anything in service as described in React Native Android Service
  • We can also get all the sensors data as used in the sensing kit(library we are using) project [Sensing Kit Android Example]

One thing we have to add on Android side. From Android 7 and above it's mandatory for background services to show a notification that background service is running in tray. On more technical side if we need instant updates we need to run background service and user will know that background service is running and we need to show notification for that. But if we divide that into interval like update after every 15 minutes then we can use Alarms. Alarm will trigger a background service after specific interval and we will do what is needed in background service and after that kill service. In that case notification will only be shown for few seconds.

[Sensing Kit Android Exam

Adds pods header search path in libraries that do not support react-native pods integration.
@waqas19921
waqas19921 / sketch-never-ending.md
Created September 7, 2018 17:58 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com