Delite Studio
Forum Replies Created
-
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] GCM Firebase?Hello, you have to use the server key you will find in Settings > Cloud Messaging > Server Key on your Firebase Console, not the one in the json file.
The json file must be used only in your client application.
Forum: Plugins
In reply to: [Staff Directory] Multiple category ids for [staff-directory] shortcodeIn the new version you can use [staff-directory cat_field=”slug” cat_relation=”and” cat=”cat1,cat2,cat3″] where cat is an array of categories identified by id or slug (use cat_field to specify it, “id” id the default) and with a relation defined by cat_relation (default “or”).
Forum: Plugins
In reply to: [Staff Directory] Multiple Category ShortcodeYes, in the new version you can use [staff-directory cat_field=”slug” cat_relation=”and” cat=”cat1,cat2,cat3″] where cat is an array of categories identified by id or slug (use cat_field to specify it, “id” id the default) and with a relation defined by cat_relation (default “or”).
- This reply was modified 8 years, 4 months ago by Delite Studio.
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] ERRORHello,
you must follow documentation for the Register API.
First of all you have to do an HTTP POST call with parameters in the body and you must pay attention to use all the mandatory parameters (os and token).
Hope it helps.
Yes, that’s likely a configuration problem of your server.
If you see the event pnfw_send_notifications_for_post_in_background it’s a confirmation that the problem is related to WP Cron since it has not been able to consume the event properly.
Our advice is to contact your hosting provider to help you to fix the configuration problem.
Hope it helps!
- This reply was modified 8 years, 5 months ago by Delite Studio.
Hello,
it’s likely a hosting or WordPress configuration problem. You can find more info in the FAQ “When I send a test notifications everything works properly, while when I publish a post nothing is sent. What should I do?” (search for the Troubleshooting section).
Hope it helps!
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] Installation helpHello, you can use WordPress Hybrid Client to develop an application, follow this tutorial.
An anonymous user can have only a single token. A user identified by an email can have one or more tokens. If you use the link function it identifies you by the token so everything was connected to the anonymous user before will be transferred to the new user identified by the email.
The token is assigned from an anonymous user to an identified user. IF you have many devices and on every device you link the same user you will see that the user will have more tokens assigned. A post is set as unread or read on a per user basis, so if you have an account and three devices all linked reading a post on one device will make it read for the user and you see it as read on every linked device.
To answer your question: you have nothing to do. Using the link command on a device will transfer statistics, read and unread state on the identified user.
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] It just refuses to get a tokenIt’s strange. The 200 OK response message must be empty, here we see an HTML as a response.
Please contact us from our direct contact form as we need to take a look to the real site.
- This reply was modified 8 years, 5 months ago by Delite Studio.
Hello, try to make the link in a separate moment. User must be registered before being linked and as the refreshToken is an asynchronous call you must wait it to be completed.
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] It just refuses to get a tokenFirst of all you must disable OAuth to be able to send commands with curl, then you can use any string you want, we will only test that the registration API works.
If it works, we can exclude problems on the WordPress side and focus on Android/Google. Please make sure you have:
- a real device
- Google Play installed with a logged in user
- a correct setup for GCM notifications
Then I suggest you to give me a complete logcat of one session of your app.
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] It just refuses to get a tokenIt seems to be correct. If you try this curl command:
curl https://YOUR_SITE/pnfw/register/ --data "os=Android&token=YOUR_TOKEN"
do you have any success?
If yes your Push Notifications for WordPress (Lite) installation is working.
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] It just refuses to get a tokenSo in the Tokens page you see zero tokens?
You may have problems on the Android side, double check your AndroidManifest.xml is correct, and please copy it here (we suppose permission problems or misconfiguration).Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] It just refuses to get a tokenDo you see any debug log on the WordPress side?
Do you see any token on the WordPress side?
Please also make sure yourAndroidManifest.xml
is correct with all requested permissions.Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] It just refuses to get a tokenWhat you are seeing is a normal log from the connection library, it’s not an error.
Please make sureR.string.push_key
,R.string.push_secret
point to the correct values (from the OAuth section), that"https://example.com/pnfw/register/"
points to your real server and thatR.string.project_num
is the correct project number on Google API Console.
Otherwise if something is not correctly set it will not work.- This reply was modified 8 years, 5 months ago by Delite Studio.