October 2018
Intermediate to advanced
464 pages
15h 17m
English
To stop receiving Geofence notifications, you can call the removeGeofences() method with either the RequestID parameter or PendingIntent. The following example uses the same PendingIntent method we used for the notification:
geofencingClient.removeGeofences(createGeofencePendingIntent()) .addOnSuccessListener(this, new OnSuccessListener<Void>() { @Override public void onSuccess(Void aVoid) { //Success } }) .addOnFailureListener(this, new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { //Failuare } });