android - Why do we use a pendingIntent to start a GeofenceTransitionIntentService? -
i going through google docs geofencing , have doubts. have used pendingintent start geofencetransitionintentservice. can please explain why? when pendingintent fired? done when user enters geofence or pendingintent created. in advance !!
from android docs , little understanding of pendingintent not able understand foreign application here?
a pendingintent token give foreign application (e.g. notificationmanager , alarmmanager , home screen appwidgetmanager , or other 3rd party applications), allows foreign application use application's permissions execute predefined piece of code.
pending intent not immediate, that's why why called pending. in paragraph.
a pendingintent token give foreign application (e.g. notificationmanager , alarmmanager , home screen appwidgetmanager , or other 3rd party applications), allows foreign application use application's permissions execute predefined piece of code.
taking notificationmanager example, external service or application. when creating notification using notificationmanager class pass pendingintent links activity(or application), intent handle notification. saying pendingintent link application handle notification when clicked.
same thing goes geofencing, pendingintent pending(waiting) until action trigger call application execute incoming event or data etc
Comments
Post a Comment