Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kashifsulaiman opened this issue Nov 21, 2019 · 2 comments

Comments

@kashifsulaiman
Copy link

kashifsulaiman commented Nov 21, 2019

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
Copy link
Author

kashifsulaiman commented Nov 22, 2019

@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?

@Red-Folder
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants