This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- remove the adb located in /usr/bin/adb | |
- ~/Android/Sdk/platform-tools/adb kill-server | |
- ~/Android/Sdk/platform-tools/adb tcpip 5555 | |
- ~/Android/Sdk/platform-tools/adb connect <phone_ip>:5555 | |
- ~/Android/Sdk/platform-tools/adb devices | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATA='{"priority": "high","notification":{"color":"#B4A06A","sound":"SOUND_IN_RAW_DIRECTORY","android_channel_id" : "CHANNEL_NAME","title": "TITLE"}, "data": {}, "to": "USER_FCM_TOKEN"}' | |
curl https://fcm.googleapis.com/fcm/send -H "Content-Type:application/json" -X POST -d "$DATA" -H "Authorization: key=SERVER_API_KEY" |