onesignal

OneSignal Push Notification Click to open actiivty

孤者浪人 提交于 2019-12-07 13:30:11
问题 I have integrated one signal library for push notification. I want to open a particular activity from click of push notification while app is not running I am receiving push notification but while I am clicking on notification the app crashes. Here is my code for notification receiver public class ExampleNotificationOpenedHandler implements OneSignal.NotificationOpenedHandler { Context context; @Override public void notificationOpened(OSNotificationOpenResult result) { OSNotificationAction

Uncaught TypeError: Cannot read property 'OneSignal' of undefined", source: file:///android_asset/www/js/app

扶醉桌前 提交于 2019-12-07 13:08:54
问题 I'm trying to initialize OneSignal to a PhoneGap application. I tried many ways. But always it gives following error, Uncaught TypeError: Cannot read property 'OneSignal' of undefined", source: file:///android_asset/www/js/app.js error. This is my app.js file document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { oneSignal(); checkConnection();} function oneSignal(){ console.log("It is calling"); var notificationOpenedCallback = function(jsonData) { console

Error:No such property: manifestPlaceholders for class: com.android.build.gradle.managed.ProductFlavor

时光怂恿深爱的人放手 提交于 2019-12-07 10:12:29
问题 I use 'gradle-experimental:0.4.0' and I want to use onesignal sdk for my project. when I try to build the project with the code which have been mentioned in the example here I get this error: Error:No such property: manifestPlaceholders for class: com.android.build.gradle.managed.ProductFlavor. Code in Sample android { defaultConfig { manifestPlaceholders = [manifestApplicationId: "${applicationId}", onesignal_app_id: "bbbbbb-324f-34fd-bed1-df8f05be55ba", onesignal_google_project_number:

How to change default push notification icon to small icon in Onesignal in ionic 3?

牧云@^-^@ 提交于 2019-12-07 07:33:32
问题 I have a problem to change small icon push notification Onesignal in ionic 3, I have tried this tutorial https://documentation.onesignal.com/docs/customize-notification-icons, https://ionicframework.com/docs/native/onesignal/ and https://github.com/OneSignal/OneSignal-Cordova-SDK/issues/341#issuecomment-382648188, but fail all, small icon in my push notification still default of onesignal. This is my folder structure and my script : My folder structure : copy_android_notification_icons.js : #

Swift didReceiveRemoteNotification not called

让人想犯罪 __ 提交于 2019-12-07 05:23:33
问题 I have an app with oneSignal as push provider. I can receive push notifications, that work good. But if I try to access push payload I get nothing as didReceiveRemoteNotification not called. I have following code func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { if application.applicationState != UIApplicationState.Background { let preBackgroundPush = !application.respondsToSelector("backgroundRefreshStatus") let

Android App crashes when OneSignal push notifications are sent

℡╲_俬逩灬. 提交于 2019-12-07 04:56:38
问题 Android app is crashing just after onesignal push notification is sent. I am getting this error. Tried looking at other stackoverflow answers but it didn't help. Please check the code (build.gradle) & error below. Dont understant why is it not working :P Please check the code (build.gradle) & error below. FATAL EXCEPTION: Firebase-FirebaseMessagingService Process: com.mario.childhood.game.videogame, PID: 30163 java.lang.AbstractMethodError: abstract method "void com.google.firebase.iid.zzb

Web Push notifications with iOS 11.3

只谈情不闲聊 提交于 2019-12-06 17:30:32
问题 With the release of iOS 11.3 and it's inclusion of service workers, I have been trying to find information about whether or not web push is also available now, particularly for the usage in PWA's. Does anyone have any knowledge on this or know where I can find the information. I Currently use Onesignal for my push notification package and it works very very well for browser and Android. So here is hoping that if it is supported now, they get it up and running fast. 回答1: Bad news : Apple has

Sending personalized push notifications using onesignal

江枫思渺然 提交于 2019-12-06 15:20:19
We are working on personalizations on each and every aspect of user interaction and want to send personalized push notifications to the users, meaning each user will receive different notification personalized to him. We are currently using Onesignal, So can I use Onesignal to send personalized notification upto over then a million user base ? Or I have to migrate to some other alternatives, if so please suggest some reliable solutions. OneSignal can certainly be used to send personalized notifications to each user. To implement this you will need to call the OneSignal API for each user that

android, unity, onesignal — where to place the sound file?

只谈情不闲聊 提交于 2019-12-06 12:52:40
问题 Saying that I'm new to android development would be an understatement. I'm trying to figure out where to place a sound file in my unity directory such that onesignal, a third party notification server, can access it for this a particular api method: android_sound: StringOptional Sound file that is included in your app to play instead of the default device notification sound. NOTE: Leave off file extension for Android. Example: "notification" reference: https://documentation.onesignal.com

Using OneSignal with Flutter

送分小仙女□ 提交于 2019-12-06 09:23:45
I notice that I can use Firebase for push notification feature. But my project requires using OneSignal. Is it possible to achieve it in Flutter? I can't find any post nor article talking about that. Thanks. EDIT: There is an official plugin now for OneSignal https://github.com/OneSignal/OneSignal-Flutter-SDK Unfortunately, there is no plugin for flutter to use OneSignal. You can write one yourself , though. Since OneSignal exists for iOS and Android, what you have to do is write a communication between flutter and respective platforms. If you decide to just implement the features for yourself