Can we publish a pubnub message synchronously using Java sdk - pubnub

We are writing a messaging app in Java . By default pubnub Java sdk supporting publish a message asynchronously. We are using pubnub 3.7.10 version.
but we want to publish messages using pubnub synchronously . How can we achieve this ??
Thanks

PubNub Publish Sync
If you can wait a week or two for v4.0 of the PubNub SDK, it is super simple to do sync publishing. It is currently in beta2 but no changes are planned before GA in the next week.
pubNub.publish().message(Arrays.asList({'msg':'hello', 'sender':'user123'})).channel("my_channel").sync();
https://www.pubnub.com/docs/java/api-reference-sdk-v4#publish

Yes. Please refer to PubNub publish not working post that has the complete code showing how you can make a synchronous publish with PubNub 4.0 SDK version.

Related

Is their SDK library to create Github Bot in python

I was moving towards creating Bot(Github App). I googled a lot but could not find it.
Is their any SDK, library to create Github bots in python as Slack-bolt, slack SDK for python to listen for web events?
There is probot which is for Node Development. Any thoughts?
It seems that this conversation happened here, and the consensus was to use this though it's not official GitHub, and looks under active development as of Feb 2022.
This repository contains code for the Python version of the Microsoft Bot Framework SDK, which is part of the Microsoft Bot Framework
https://github.com/microsoft/botbuilder-python

Creating An Alexa Bot Using The Microsoft Bot Framework in SDK V4

Could you help us on how to create Alexa Bot using the Microsoft Bot Framework in SDK V4?
Tried referring to https://learn.microsoft.com/en-us/healthbot/integrations/alexa which is in SDK V3. But we need to implement using Microsoft Bot Framework in SDK V4 using NodeJS.
Bot Framework doesn't have an official channel for Alexa at this time. See here for all of the currently-supported channels and their respective documentation.
You may want to try the alexa-bridge, although it's a bit dated and not officially supported.
There's also an unofficial .NET Alexa adapter for BotBuilder that works with v4. You may find this tutorial useful in implementing it, as well. Unfortunately, there isn't a similar adapter written in NodeJS.

How to use Firebase Clould Messaging with Liferay Push Notification

Liferay Push Notification use Google Cloud Messaging, but recently Google replaced GCM with firebase cloud messaging. Could you please tell me if your push plugin supports FCM or if there is any solution on how to make it work with FCM?
GCM still works, the service hasnt been stop.
Although Liferay doesnt support FCM, i dont doubt it will.
https://firebase.google.com/support/faq/
For Liferay 6.2 EE, Liferay Push plugin supports FCM (the EE version of the plugin https://web.liferay.com/marketplace/-/mp/application/48438926) starting with version 1.3.2. For Liferay 7.0+ (both CE and EE) Liferay Push plugin supports FCM starting from version 2.2.0 (https://issues.liferay.com/browse/LPS-70692).

iOS Nest Firebase Framework [nest-api]

I am currently using Firbase 1.2.3 provided with the Nest SDK for iOS. I have found that the Firebase Framework provided is so dated it cannot built with Bitcode enabled. This means I cannot build the whole project with Bitcode support. It appears from the documentation they are still pushing Firebase, however in practice they are not updating it. For example, I believe Firebase is currently up to version 2.3.4 (Bitcode Supported). When I use the later version the authorization process is unstable and can take a long time. Has anyone been successful and using a more recent Firebase Framework?

rabbitMQ for Blackberry

As your know, RabbitMQ is the good open source project for message send / receive.
Now we have a BlackBerry project need use RabbitMQ.
But, when we download the latest RabbitMQ client zip and import our project, we found many errors.
Through research we found that these errors are due to Java jdk version. The Blackberry jdk base on the Java ME, in other words, the blackberry API just only supports Java ME sdk, but your RabbitMQ client code base on the Java SE sdk, so, some RabbitMQ use the API can’t be support by RIM, such as
HashMap. Cloneable interface, EvevntListener interface and so on.
I have tried to modify those errors, but found it is very difficult, because change this will make some
more error in other classes.
Can you give me some advice?
RabbitMQ with a Java AMQP API might not be the best way to achieve what you want in a JavaME environment. Have you looked into using, for example, STOMP? There's a STOMP plugin for RabbitMQ and you could use a STOMP JavaME library to communicate with RabbitMQ instead?
At RabbitMQ Java Client page http://www.rabbitmq.com/java-client.html we see the lates version available. 2.8.4 as of today. But they keep older versions available on the site http://www.rabbitmq.com/releases/rabbitmq-java-client/
Try with the oldest version of the library and see if it works with Java ME http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.4.0/

Resources