Skip to content

Instantly share code, notes, and snippets.

View behzadcym's full-sized avatar

behzad soltani behzadcym

View GitHub Profile
@behzadcym
behzadcym / gist:ee9f22e8c79496d48a8ce4c7dbdcf4a0
Created January 19, 2021 10:33
connect to physical device using wifi in android studio
- 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
@behzadcym
behzadcym / gist:27632d623b5705b1cd14bf8c090ae5c9
Created January 10, 2021 11:29
send fcm notification using curl in terminal
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"