I followed this tutorial using Java. As expected the BroadcastReceiver receives an Intent, but the GeofencingEvent fromIntent (Intent intent) method returns NULL.
According to the docs for fromIntent:
returns - a GeofencingEvent object or null if the given intent is null or doesn't contain geofencing event
What are possible reasons?
While i wrote this question i noticed the error: In newer versions
PendingIntent.getBroadcastforces you to choose eitherPendingIntent.FLAG_MUTABLEorPendingIntent.FLAG_UNMUTABLE. I chose FLAG_UNMUTABLE... Obviously the Intent cant get filled with GeofenceEvent Information if its not mutable...