Last active
November 24, 2018 14:27
-
-
Save ilhamwahabi/a111bf24c2cfc15c4090ca57b5e23b2e to your computer and use it in GitHub Desktop.
Add
This file contains hidden or 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
| class MotivationNotifData { | |
| public $type = 'motivation'; | |
| } | |
| OneSignal::sendNotificationUsingTags( | |
| "Some Message", | |
| array( | |
| ["field" => "user_id", "relation" => "=", "value" => $userId], | |
| ), | |
| $data = json_encode(new MotivationNotifData()), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment