[Unity] Native libraries not loaded - dropping message. FCM plugin

1,040 views
Skip to first unread message

Igor Lopatin

unread,
Feb 1, 2017, 10:46:14 AM2/1/17
to Firebase Google Group

Hi!

I've made plugin Android Firebase Cloud Messaging for Unity. Everything works fine. And I want to send message to Unity app, via UnityPlayer.UnitySendMessage("Plugins", "OnPushReceived", "my_data"); from java public void onMessageReceived (RemoteMessage remoteMessage) method. But when push-notify arrives, and I execute UnitySendMessage,  I have a message in console Native libraries not loaded - dropping message for... 

How can I solve it?

Stewart Miles

unread,
Feb 10, 2017, 2:12:02 PM2/10/17
to fireba...@googlegroups.com
Any chance you could share the method you're trying to call?  It sounds like you're trying to call a method on the Java service is that correct?  If so, this is tricky http://stackoverflow.com/questions/4844930/how-to-call-methods-of-a-service-from-activity

If you want to send a loopback message from your app (i.e the activity) to your app you could use our internal API see https://firebase.google.com/docs/cloud-messaging/unity/client#note_for_android where you send an intent to the MessagingForwardingService which will end up notifying your app.

Cheers,
Stewart





--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9c318ddd-f8b7-4b14-abb6-78b78d3e424f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages