Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

FCM No virtual method subscribeToTopic on notification v2
Started by mohsen.zabihi10 Apr 30 2019 01:56 AM

2 replies to this topic
fcm notification firebase
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

mohsen.zabihi10

[GLOBAL: userInfoPane.html]
mohsen.zabihi10
  • Observer

  • 1 posts
  • Corona SDK

hi

I've Implemented notification plugin, and it worked correctly but when i updated my gradle to these :

        classpath 'com.google.gms:google-services:4.2.0'
       implementation'com.google.firebase:firebase-messaging:17.6.0'
 
i got the error :
 java.lang.NoSuchMethodError: No virtual method subscribeToTopic(Ljava/lang/String;)V in class Lcom/google/firebase/messaging/FirebaseMessaging; or its super classes (declaration of 'com.google.firebase.messaging.FirebaseMessaging' appears in /data/app/....==/base.apk!classes2.dex)



[TOPIC: post.html]
#2

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 802 posts
  • Corona Staff

Try rebuilding (Build -> Rebuild Project)



[TOPIC: post.html]
#3

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 802 posts
  • Corona Staff

Also, don't use firebase 17, plugin is built against 15.0.1: http://docs.coronalabs.com/native/android/dependencies.html#dependency-plugins




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: fcm, notification, firebase