B4A Library FirebaseNotifications - Push messages / Firebase Cloud Messaging (FCM)

Discussion in 'Additional libraries, classes and official updates' started by Erel, Jun 9, 2016.

Thread Status:
Not open for further replies.
  1. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this in the B4J forum.
     
  2. dar2o3

    dar2o3 Active Member Licensed User

    I can get a list of topics to which I subscribe?
    I have an application in which customers subscribe to receive information by provinces, you can subscribe or unsubscribe as they want, I would check when there are no clients subscribed to a particular topic this topic no longer exists.

    Is there a limit when creating new topics?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    No. You will need to maintain it yourself.

    No, there is no limit.
     
  4. Noorul HAQUE

    Noorul HAQUE Member Licensed User

    Hi All

    I am trying to develop Android App with Firebase Push messaging, I have done following I am using B4A6

    1) Created account and App in Firebase
    2) downloaded google json file , copied to App folder
    3) Edited Manifest file added Google Play Services Base, Firebase Base, Firebase Notification
    4) in #Region Project Attributes I added #AdditionalJar: com.google.android.gms : play-services
    5) now when I am making Private fm As FirebaseMessaging it showing : unknow type , are you missing a library reference ?

    Please advice me if any thing I am missing ...
     
  5. DonManfred

    DonManfred Expert Licensed User

    you forget to mark the library in library tab?
     
    Noorul HAQUE likes this.
  6. Noorul HAQUE

    Noorul HAQUE Member Licensed User

    @Manfred in library tab which I have to select ?
     
  7. Noorul HAQUE

    Noorul HAQUE Member Licensed User

    Done ... Thanks a lot
     
  8. DonManfred

    DonManfred Expert Licensed User

    The lib in Post #1 of this thread?
     
  9. KMatle

    KMatle Expert Licensed User

    Mashiane and DonManfred like this.
  10. incendio

    incendio Well-Known Member Licensed User

    Is there a minimum android version to use this service?
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    Android 2.3.
     
  12. AscySoft

    AscySoft Active Member Licensed User

    how come
    Code:
    Message.SentTime
    is pointing always to 1970? How to retrive actual date/time from this object?
     
  13. Erel

    Erel Administrator Staff Member Licensed User

    I see it too. Message.SentTime returns 0. It looks like a bug in FCM.
     
  14. dragonguy

    dragonguy Active Member Licensed User

    Can we send object through by fcm? Or just only can send string?
     
  15. DonManfred

    DonManfred Expert Licensed User

    Only String i guess.
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    Only strings. However you can use B4XSerializator to serialize an object as an array of bytes and then use StringUtils.EncodeBase64 to encode it as a string.
     
  17. jayel

    jayel Active Member Licensed User

    I get this on compiling :
    Package name is "#ApplicationLabel: testpush"
    And project name in firebase is also testpush

    Probably a stupid question, but do you have any pointers what the solution is please?
     
  18. DonManfred

    DonManfred Expert Licensed User

    That´s NOT the packagename! Press CTRL-B in the IDE to see the packagename.

    It must be the same as you defined in firebase console before you download the json file from the console.
     
    abendsen likes this.
  19. jayel

    jayel Active Member Licensed User

    Thanks
     
  20. jayel

    jayel Active Member Licensed User

    android side is compiling but the FCMPush on B4J give this on compiling :
     
    krlos2004 likes this.
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice