I have a receiver for geofence events. I see this comment in the receiver module:
Does this mean that I can't access anything else in the app from the receiver?
In my app, I have a set of classes that make out the actual app, and a couple of the classes are declared in Starter. Before I can act on anything in the receiver I need to call some code in the classes declared in Starter. How should I do this? (The app is using B4XPages and I don't think it would be a problem to declare the classes in B4XMainPage instead, if I just could count on it always being there when the receiver is executed.)
Sorry if I'm missing something obvious, I'm failing finding anything to read on this topic.
B4X:
'Do not assume that anything else, including the starter service, has run before this method.
Private Sub Receiver_Receive (FirstTime As Boolean, StartingIntent As Intent)
Does this mean that I can't access anything else in the app from the receiver?
In my app, I have a set of classes that make out the actual app, and a couple of the classes are declared in Starter. Before I can act on anything in the receiver I need to call some code in the classes declared in Starter. How should I do this? (The app is using B4XPages and I don't think it would be a problem to declare the classes in B4XMainPage instead, if I just could count on it always being there when the receiver is executed.)
Sorry if I'm missing something obvious, I'm failing finding anything to read on this topic.