'Name : ' + ANotification.Name + #13#10 + 'Title : ' + ANotification.Title + #13#10 + Procedure TfmMain.NotifReceiveLocalNotification(Sender: TObject Var FServiceConn: TLocalServiceConnection įServiceConn := TLocalServiceConnection.Create įServiceConn.StartService('unMainServiceLocation') įServiceConn.BindService('unMainServiceLocation') Result := _STICKY Īnd this is my caller app code procedure TfmMain.FormCreate(Sender: TObject) It's like my app just died (or sleep) after it lost focus/switch to other appīelow is my simple service & notification code function TAndroidServiceDM.AndroidServiceStartCommand(const Sender: TObject Ĭonst Intent: JIntent Flags, StartId: Integer): Integer Is there any way to make sure my service is running? Since when I tried to check on device's System - Apps - Running even my app is not listed. I'm trying to make an application with local service, with an example fromīut in my case, my service just won't fire a notification after started (nor can I be sure that the service is running).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |