Chat Example Push is a React Native test application that integrates with Stream Chat and allows you to test the push notification configs for your chat apps. You can read more about how to configure your app for push notifications here.
-
Install deps:
yarn install
-
Copy template
env
filecp .env.example .env
-
Edit
.env
file and add:- Your Stream API Key
- A user id to associate a device with (eg:
bob123
) - A user token for that user id. If your app is in development mode and has auth disabled, the token doesn't need to be valid
- A sender id from Google FCM (only if you want to test with Android, leave blank otherwise)
API_KEY=key USER_TOKEN=user_token_for_bob USER_ID=bob123 SENDER_ID=sender_id_from_google
-
[iOS Only]
Setup the XCode project with code signing and push capabilities. Make sure the bundle id you specify in the XCode project settings matches the one used when configuring push settings for your app.
- Run the test app on your desired device
- Use
getstream-cli
to send out test push notifications. Make sure theuser_id
used in the.env
file and the one used in the cli match.
Copyright (c) 2015-2019 Stream.io Inc, and individual contributors. All rights reserved.
See the file "LICENSE" for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.