Category : onesignal

I am using PHP and Curl to extract the OS of a device (IOS or Android) from OneSignal based on the player_id of the device. My code looks like that. I keep on receiving an empty json response $appId = ‘4d2fa828-xxxx-xxx-xxx-ee823915586e’; $fields = array( ‘app_id’ => "4d2fa828-xxxx-xxx-xxx-ee823915586e", ‘include_player_ids’=>[‘a4602bf7-xxxx-xxxx-xxxx-ab484618c03e’], ‘language’ => "en" ); $fields = json_encode($fields); ..

Read more

I have a WordPress site and WebView android app.I wanted to send post push-notification into android app via Onesignal with post featured image. I tried many times for solution.Finally I found this.I will explain it for any other crying folks.:) One Signal ask for php code to add your wordpress site via mu-plugin.(like below link) ..

Read more