bgs-core icon indicating copy to clipboard operation
bgs-core copied to clipboard

Where to put MyService.java in IONIC? Android is unable to find/bind.

Open kashifsulaiman opened this issue 5 years ago • 2 comments

I've tried at following places: platforms/android/app/src/main/aidl/com/red_folder/phonegap/plugin/backgroundservice/sample/MyService.java platforms/android/app/src/main/MyService.java plugins/com.red_folder.phonegap.plugin.backgroundservice/src/android/MyService.java

AndroidManifest.xml is at platforms/android/app/src/main/AndroidManifest.xml

kashifsulaiman avatar Nov 21 '19 13:11 kashifsulaiman

@Red-Folder I found that there is already MyService.java in plugins/com.red_folder.phonegap.plugin.backgroundservice.sample/src/android/MyService.java and the service is also working even after kill. But when I edit it or add some more logs in this file, there is no effect. Am I editing wrong file?

kashifsulaiman avatar Nov 22 '19 11:11 kashifsulaiman

I'm afraid I couldn't tell you. I've no experience of IONIC and haven;t touched this project from many years.

I'd advise you take a look at Service Workers/ Progressive Web Apps rather than using this plugin.

I'll leave the question open in case someone else has a response.

Red-Folder avatar Dec 13 '19 12:12 Red-Folder