Closed josiahbryan closed 2 years ago
How odd. Please set a breakpoint here and let me know what you find.
@diachedelic not sure how to set a breakpoint on the plugin's java file - it doesn't show up as an available file in Android Studio when I do "shift shift" and search everything for "Background..." :) thoughts?
Looks like capacitor-background-geolocation is missing?
It does look like that doesn't it? However it is listed in package.json and it is working when access to be the plugin API, and I have ran npx cap sync so not sure what else to do
On Tue, Oct 5, 2021, 12:42 AM diachedelic @.***> wrote:
Looks like capacitor-background-geolocation is missing?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/capacitor-community/background-geolocation/issues/37#issuecomment-934084664, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEZELEV2FCSKODBKKCCMFTUFKF4PANCNFSM5FK4F23A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Perhaps Build -> Clean Project in Android Studio?
Good idea - that at least caused it to show up in the app tree. However, no change in functionality of the bug:
Android studio tree now:
But you can set a breakpoint now.
I had the same behavior.
Does it work when you remove the setting: “capacitor_background_geolocation_notification_icon” from strings.xml? (it will fallback to default). If this does work, i guess your icon is not compatible. Select "Notification Icons" as the Icon Type when creating the Image Asset in Android Studio (or create a Vector Asset in Android Studio). Set the name of your asset in strings.xml, something like:
<string name="capacitor_background_geolocation_notification_icon">drawable/ic_my_tracking_icon</string>
Describe the bug Passing
backgroundMessage
andbackgroundTitle
toaddWatcher
has no effect (does not change strings on the actual notification.) Also, the specified<string>
(capacitor_background_geolocation_notification_icon) does not change the actual icon used. Also, touching the notification does NOT bring the app to foreground - instead it goes to app settings in the system UI.To Reproduce Steps to reproduce the behavior:
.addWatcher
with custombackgroundMessage
andbackgroundTitle
screens. Setstrings.xml
with custom iconExpected behavior Title and body of notification should match strings given in item 2 above. Icon should batch documented icon in strings.xml. Touching the notification should open the app (bring to foreground)
Screenshots Available on request
Desktop (please complete the following information): N/A
Smartphone (please complete the following information):
Additional context On request