Cannot find class for Custom push notifications #5667
Unanswered
martinrehder
asked this question in
Q&A
Replies: 1 comment
-
I had to add this to my service class file:
Replace |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an existing app that already gets push notifications thru Blaze. I need to add sound to the notifications on the android device.
The app had the standard Braze messaging service declared in the manifest:
But I created a new class extending the messaging service as:
This compiles and runs - until I get a push notification, then I get a fatal exception :
"java.lang.RuntimeException: Unable to create service com.wearehathway.carlsjr.development.MyFirebaseMessagingService: java.lang.ClassNotFoundException:"
The class, MyFirebaseMessagingService is in the same folder as MainActivity - why would this class not be found? Color me confused
Beta Was this translation helpful? Give feedback.
All reactions