dtsolis
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Parse Push Service] Request for updateI’ll prepare a new update in a few days!
Thanks for the notice!
Forum: Plugins
In reply to: [Simple Parse Push Service] Sending topics from bbPressI found a handy list of bbPress hooks that might be helpful https://etivite.com/api-hooks/bbpress/
Forum: Plugins
In reply to: [Simple Parse Push Service] Sending topics from bbPressHi and thank you for your support!
I didn’t have the change to work on bbPress but the work around is this:
1. search for any available hook that bbPress might have implemented
2. if there are some hooks, find the one that is related with ‘new topic’
3. send the pushIn order to send the push via this plugin, you can modify the code below to suite your needs
$message = 'New topic on bbPress'; $badge = 1; $channels = 'channel_1,channel_2'; $post_id = 13; $extraKeyForValue = 'topic_title'; $extraValue = 'Hello from bbPress'; include(plugins_url().'/simple-parse-push-service/pushFunctionality.php'); sendPushNotification(get_option('simpar_appID'), get_option('simpar_restApi'), $message, $badge, $post_id, get_option('simpar_pushChannels') ,$extraKeyForValue, $extraValue);
Hi and thank you for your support!
By default, “Active Push Notification” should be NO. It changes to YES if you select from the plugin’s settings menu one of “Send post’s title as the Push Notification’s title” and “Remember last used message in posts” or both.
Disabling them should make it work! If it won’t, we’ll come up with a different solution.Thanks again,
DimitrisForum: Plugins
In reply to: [Simple Parse Push Service] Notification are not delivered :(In this
while
functionwhile (itr.hasNext()) { String key = (String) itr.next(); Log.d(TAG, "..." + key + " => " + json.getString(key)); }
You could do something like this
while (itr.hasNext()) { String key = (String) itr.next(); if ( key.equals("post_id") ) { int post_id = json.getInt(key); // ...do whatever you want with the post_id } Log.d(TAG, "..." + key + " => " + json.getString(key)); }
Forum: Plugins
In reply to: [Simple Parse Push Service] Notification are not delivered :(Hi and thanks for your support!
As i can see you’re on Android so i cannot help you much because it’s more about Android development and i didn’t have the chance to do much on this area.But, as i think parse’s documentation is pretty good. Take a look here https://parse.com/docs/push_guide#receiving-responding/Android.
As you can see, application receives aJSONObject
which you have to parse and get all the info.This plugin adds to the payload an extra key-value pair with the key name “post_id”.
So, in order to get thepost_id
you’re using the same way you use to get thetitle
from the JSON payload.
After that and assuming your post_id is equal to 15, using the url....your-wordpress-website.com/?p=15&feed=rss&withoutcomments=1
you get your article’s feed and do whatever you want.
If you don’t want the feed, the url then is....your-wordpress-website.com/?p=15
Hope that helps.
Forum: Plugins
In reply to: [Simple Parse Push Service] Notification are not delivered :(Nice! I’ll work on an update with the ability to set custom channel or no channel.
Thanks for your feedback!
Forum: Plugins
In reply to: [Simple Parse Push Service] Notification are not delivered :(Hello and thank you for downloading the plugin,
This output doesn’t seem to be wrong…
The plugin assumes that the user has been subscribed to the broadcast channel.Is there any chance that in your iOS app, the users are subscribed in a channel named something different than “” ?