Delphi 10 Seattle Android service (TAndroidService

2019-07-19 03:17发布

问题:

Is it possible possible to receive Google Cloud Messages within an android service (TAndroidService)?
It works fine in an application, but when I try to do the same in an android service (local service) I always get the same error...

I have tried it with TKinveyProvider and TPushServiceConnection, but when I debug it, I get an "Activity not found, maybe you are in a service" error.