Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.29 KB

Android.md

File metadata and controls

23 lines (16 loc) · 1.29 KB

SunshineConversationsClient::Android

Properties

Name Type Description Notes
type String To configure an android integration, first visit the Firebase Console. Copy the `serverKey` and `senderId` from the Cloud Messaging tab in the settings of your project and call the create integrations endpoint with this data. If you would like to continue using your legacy GCM `serverKey` you can also obtain it from the Google Developer Console. [optional] [default to 'android']
server_key String Your server key from the fcm console. [optional]
sender_id String Your sender id from the fcm console. [optional]
can_user_create_more_conversations Boolean Allows users to create more than one conversation on the android integration. [optional]

Code Sample

require 'SunshineConversationsClient'

instance = SunshineConversationsClient::Android.new(type: null,
                                 server_key: <server-key>,
                                 sender_id: <sender-id>,
                                 can_user_create_more_conversations: null)