notification

oracle change notification issue

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have oracle database 11.2, and I am trying to get oracle change notification working. But it does not seem to notify me, I am using ojdbc6.jar. Table is getting registered into notification; which is verified by running select * from USER_CHANGE_NOTIFICATION_REGS When I execute an update on table from external client, my listener is not getting called. But when I shutdown/start database it does notify. import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Properties; import oracle.jdbc

How to detect keyboard type changes with the size, type, suggestion bar height of new keyboard type?

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there any way to detect keyboard types changes with the size, type and suggestion bar height, change like from English keyboard to Hindi which contains some kind of suggestion bar (see screenshot). Normal English Keyboard First Problem After changing to Hindi LIPI - When just I changed, everthing is fine because size of english and hindi keyboard is same, but after start typing Hindi Lipi suggestion cover the TextField Second Problem After changing to Emoji - Emoji keyboard hight little bit more as compare to english, So again keyboard

Android Notification Big Picture Style and Big Text Style

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've build a push notification using Big Picture Style as show here . Is it possible to mix Big picture Style and Big Text Style as shown in the attached photo? How do I do it? 回答1: You should be able to do it this way: Notification notif = new Notification.Builder(context) .setContentTitle("Title") .setContentText("content") .setSmallIcon(R.drawable.ic_small) .setLargeIcon(bitmap) .setStyle(new Notification.BigPictureStyle() .bigPicture(bigBitmap) .setBigContentTitle("big title")) .build(); Source 回答2: View More... text in your norification

NotificationManager.cancel() doesn't work for me

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been trying for hours to remove a persistent Notification set by a Service using: startForeground(1337, notification); The code I'm using to cancel it: NotificationManager nManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); nManager.cancel(1337); // cancel existing service notification, doesn't take effect nManager.cancelAll(); //surpluous, but also doesn't take effect What am I missing here? I'm baffled. To clarify why I am doing this: the Service starts with a default persistent Notification. When

Send notification from the server to user segment who installed the app

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: In Firebase console, I saw the option to send a notification to User Segement with app "com.example" (where com.example is the app name). As the image shows: But how to do it from the server side using the FCM REST API: https://fcm.googleapis.com/fcm/send 回答1: Unfortunately, it is not possible to send messages to User Segments using the FCM REST API . As an alternative, you'll have to make use of the other ways to send messages to multiple devices , like simply using the registration_ids parameter and Topics Messaging (which I

If add an observer for a notification in the AppDelegate, do I need to bother removing it?

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In the AppDelegate's didFinishLaunchingWithOptions : [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(contextChanged:) name:NSManagedObjectContextDidSaveNotification object:nil]; This is so I can merge changes to the data from other threads. Question: Do I need to bother removing this listener in applicationWillResignActive or applicationWillTerminate ? It doesn't seem like there's a point. I guess I'm asking if it's normal to have listeners like this in the main loop that never get removed. 回答1: You can never remove

IOS 8 Silent push notification not working without Xcode

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to test out the silent push notification and I notice that my Iphone (IOS 8) can only receive silent notifications when my device is connected to Xcode. While it is unplugged, I can only receive one silent push in probably 5-10 tries. This only happen to IOS 8 because I have another phone which is running on IOS 7 and not even a single silent push is missed. Anyone face the same issue ? More details: If the phone is connected to power source, I'm able to get silent push notifications perfectly... 回答1: I have encountered similar

Failed to post notification on channel “null” Target Api is 26

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Two log showing 1: Use of stream types is deprecated for operations other than volume control 2: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case 回答1: Gulzar Bhat's answer is working perfectly if your minimum API is Oreo. If your minimum is lower however, you have to wrap the NotificationChannel code in a platform level check. After that you can still use the id, which will be ignored pre Oreo: if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION

Bad Notification: Couldn't expand RemoteViews for: StatusBarNotification. on Android Nougat

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I use OneSignal SDK to show notifications. I do it in OneSignalPushService.java . OneSignalPushService.java: public class OneSignalPushService extends NotificationExtenderService { @Override protected boolean onNotificationProcessing(OSNotificationReceivedResult notification) { if (!TinyDbWrap.getInstance().isPushEnabled()) { KLog.d(this.getClass().getSimpleName(), "Notification will not displayed"); return true; } OverrideSettings overrideSettings = new OverrideSettings(); overrideSettings.extender = new NotificationCompat.Extender() {

Custom notification: java.lang.RuntimeException: bad array lengths

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use custom notifications in my Android application using Google's sample from here (section Creating a Custom Notification Layout ). Since I'm using this exact code I got a RuntimeException every few times a notification is fired. My stack trace: FATAL EXCEPTION: main java.lang.RuntimeException: bad array lengths at android.os.Parcel.readIntArray(Parcel.java:677) at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:369) at android.app.NotificationManager.notify(NotificationManager