onesignal

Firebase & One Signal Push Notifications Guidance

…衆ロ難τιáo~ 提交于 2020-08-10 23:07:30
问题 I have been playing around with One Signal & Firebase Push Notification. I am almost sure One Signal cannot help me and am starting to feel Firebase might also not be able to help me. We have a web app that allows regular authors to post articles. It also allows users to comment on the article using Firebase synced realtime database. I want to create functionality where users can get a push notification for article-specific comment treads. The room ID will be the article ID. If both allow

Get player_id from OneSignal on page load

╄→尐↘猪︶ㄣ 提交于 2020-07-08 10:51:48
问题 I am implementing web push notifications using Onesigal API. $fields = array( 'app_id' => "07aae1f0-xxxx-xxxx-aa7a-21c79c5b6733", 'include_player_ids'=>['57dd3f80-xxxx-xxxx-adb0-294bfa69621a'], 'contents' => array( "en"=> "message" ) ); $fields = json_encode($fields); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://onesignal.com/api/v1/notifications"); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json; charset=utf-8', 'Authorization: Basic YTdmYTYxYzYtN..

Get player_id from OneSignal on page load

社会主义新天地 提交于 2020-07-08 10:51:45
问题 I am implementing web push notifications using Onesigal API. $fields = array( 'app_id' => "07aae1f0-xxxx-xxxx-aa7a-21c79c5b6733", 'include_player_ids'=>['57dd3f80-xxxx-xxxx-adb0-294bfa69621a'], 'contents' => array( "en"=> "message" ) ); $fields = json_encode($fields); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://onesignal.com/api/v1/notifications"); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json; charset=utf-8', 'Authorization: Basic YTdmYTYxYzYtN..

How do I open https URL from One Signal push-notification WITHIN my WebView react-native app?

北城以北 提交于 2020-05-17 07:27:04
问题 I've created a React-native app (tested in android) using WebView with the initial URL of my company's website. I want the user to be able to get redirected to a spesific website's product page (for example https://www.test.com/product/hoodie-with-zipper/) WHEN they clicked the OneSignal push notification with the intended launch URL included in the sent notification. The problem is, I want the user to open the URL with my WebView App, not the browsers. The features I've implemented and

Why some special characters are not supported in one signal?

我与影子孤独终老i 提交于 2020-03-23 12:04:25
问题 I am using onesignal to send push notifications to mobile app from my webservice. but I realized that some characters are not supported, what can we do to resolve this issue? below is my postString sent to onesignal: postString = "{""app_id"":""myID"",""language"":""ar"", ""tags"" : [{""key"": ""my_key"", ""relation"": ""="", ""value"": """ & my_value& """}] , ""data"" : {""contactName"" : """ & contactName & """ }, ""contents"" : {""en"" : """ & pushMessage & """ } }" when I tried to send

Ionic - OneSignal doesn't work on iOS 13.x

主宰稳场 提交于 2020-01-25 08:53:42
问题 I have a problem with my ionic 3 app and OneSignal. The app working fine on Android version and iOS version 12.x, but in iOS 13.* nothing happends. Viewing in the OneSignal Dashboard the device not registered. I also don't get the playerid in my app (calling getIds() method). app.component.ts: constructor(platform: Platform, statusBar: StatusBar, private oneSignal: OneSignal, public api: ApirestProvider, private alertCtrl: AlertController, splashScreen: SplashScreen) { platform.ready().then((