Comments (10)
Line #6 at ti.goosh.BroadcastReceiver.onReceive (BroadcastReceiver.java:32)
is bolded by Google Play BTW
from ti.goosh.
Ok I setup an Android 8.0 emulator and now I see this error about
Failed to post notification on channel "null"
See log for more details
Which then led me to this change for Android 8.0: https://developer.android.com/guide/topics/ui/notifiers/notifications#ManageChannels
So it seems this error has to do with Notification channels.. No idea how to set those up, but just an FYI
from ti.goosh.
I'm experiencing this issue as well. Have you determined the best way to handle this? Could ti.goosh somehow swallow this error? Or do we have to setup Channels?
from ti.goosh.
@killroyboy It sounds like you will have to setup channels. It looks like Ti.Goosh doesn't support that yet?
What I did for now is to downgrade the target SDK back to 25. It is when you go up above that in targetSDK that Android wants those channels.
Problem is Google says they will require target SDK above 25 starting in August, so you can target 25 and submit a build now and then just wait until Ti Goosh has an update to support channels
Thats my master plan atleast :)
from ti.goosh.
@mark22 Thanks. I ended up doing the exact same thing. I'll figure out the channels after the current release.
from ti.goosh.
Having the same problem, will downgrade target sdk to 25
Related: #97
from ti.goosh.
This issue doesn't seem to be caused by channels.
Apparently, Android 8 reduced the scope of services and it is now forbidden to start a service in the background. You can reproduce the issue by stopping your app and sending a notification. You will get the same error: java.lang.IllegalStateException on startWakefulService. The GcmReceiver is now deprecated and the JobScheduler should be used instead for Android Oreo and above.
Downgrading the target SDK to 25 would be a solution, but Google Play will refuse it after the release of Android P (probably August 2018).
from ti.goosh.
java.lang.NumberFormatException:
at java.lang.Integer.parseInt (Integer.java:521)
at java.lang.Integer.parseInt (Integer.java:556)
at com.google.gson.JsonPrimitive.getAsInt (JsonPrimitive.java:264)
at ti.goosh.IntentService.parseNotification (IntentService.java:140)
at ti.goosh.IntentService.onMessageReceived (IntentService.java:55)
at com.google.android.gms.gcm.GcmListenerService.handleIntent (Unknown Source)
at com.google.firebase.iid.zzc.run (Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
at java.lang.Thread.run (Thread.java:762)
this crash I got from android vitals and it's happening for all the users.
from ti.goosh.
Does anyone know a solution to this?
from ti.goosh.
I highly recommend using this plugin instead: https://github.com/hansemannn/titanium-firebase-cloud-messaging
No crashes and seems to work perfectly.
from ti.goosh.
Related Issues (20)
- How can we use both ios? HOT 3
- Failed to get GCM Registration Token:TIMEOUT HOT 1
- Cannot build with 7.1.0 SDK. HOT 10
- Crash Report HOT 2
- Crash report from Google Play HOT 1
- Crash report HOT 2
- java.lang.ClassCastException receiving foregrounded FCM ttl and sent_time HOT 2
- Silent notification not receiving payload? HOT 2
- Getting invalid sender error
- Compilation Error HOT 10
- targetSdkVersion="26" Notifications not received on some android device HOT 24
- Android Oreo Issue --Notification is not receiving in background HOT 3
- Not getting callback when the app is in background or killed HOT 27
- [WARN] : W/ti.goosh.IntentService: Show Notification: FALSE HOT 5
- ti.goosh and ti.admob together
- Use Android notification channels HOT 1
- Firebase support - internal dependencies HOT 8
- Remove app from background, No notification get
- Need to bump version for TiSDK 9.x version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ti.goosh.