Reputation: 3911
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":
}
Upvotes: 6
Views: 1336
Reputation: 3417
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.
Upvotes: 3