Implementing MQTT using Google cloud pub sub in flutter

985

You can use gcloud package in your flutter app. It provides support for Cloud Datastore, Cloud Storage, and Cloud Pub/Sub. Hope it helps.

P.S. Don't use any third-party libraries to connect with Google services. It may not have full support or may stop working at any point of time. Use libraries that are being provided by Google. Other client libraries for Google PubSub are listed here.

Share:
985
Dhaval Kansara
Author by

Dhaval Kansara

iOS | Flutter Developer

Updated on December 16, 2022

Comments

  • Dhaval Kansara
    Dhaval Kansara over 1 year

    Is there any way to establish a connection with Google IoT pub-sub API in flutter?

    I tried this library but it doesn't have the configuration which I am looking for.

    I have the following data which will be used to establish the connection:

    {
      "type": ,
      "project_id": ,
      "private_key_id": ,
      "private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",
      "client_email": ,
      "client_id": ,
      "auth_uri": ,
      "token_uri": ,
      "auth_provider_x509_cert_url": ,
      "client_x509_cert_url": 
    }