i am using pushbots plugin for push notification but it is not working at all after all my efforts please help me
- 78 Posts
- 0 Reply Likes
Posted 4 years ago
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
@Vikash,
say it is not working is not useful.
1. *What you are trying to do. Be specific, not general.*
2. *What have you tried to do to make it work?* Time and time again, people post requests for help and state nothing beyond "X doesn't work", but give no indication of what they have tried to do to make it work.
3. *What did not work as expected. What was expected to happen?* It may be that your expectation of what was supposed to happen is incorrect and what happened is the right behaviour. Don't forget that Android and IOS have different default behaviours for many things.
4. *What level of experience you have with mobile development.* This gives us a big clue as to how we can help you.
Jesse
say it is not working is not useful.
2. *What have you tried to do to make it work?* Time and time again, people post requests for help and state nothing beyond "X doesn't work", but give no indication of what they have tried to do to make it work.
3. *What did not work as expected. What was expected to happen?* It may be that your expectation of what was supposed to happen is incorrect and what happened is the right behaviour. Don't forget that Android and IOS have different default behaviours for many things.
4. *What level of experience you have with mobile development.* This gives us a big clue as to how we can help you.
Jesse
- 78 Posts
- 0 Reply Likes
@Jesse
1. i am trying to send push notification using pushbots plugin
2. Gone through several tutorials of Pushbots applied their methods as mentioned
but still no progress
3. it should detect my device after installation but not detecting my device after installing apk
4. I am very new have developed only four app till now
find softwarez solution in playstore that is my channel on play store
1. i am trying to send push notification using pushbots plugin
2. Gone through several tutorials of Pushbots applied their methods as mentioned
but still no progress
3. it should detect my device after installation but not detecting my device after installing apk
4. I am very new have developed only four app till now
find softwarez solution in playstore that is my channel on play store
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
I am not sure why this had to be a new thread, but I'm sure Jesse will explain.
Anyway, in the old thread, you posted your latest zip file.
Your registration with Pushbots in your index.js will never be reached, because you already run into a javascript error with
In your index.html, you don't have an html element with id='deviceready', which is however expected in the function receivedEvent().
You should solve that first, by removing this whole display functionality of the deviceready event on the page.
Anyway, in the old thread, you posted your latest zip file.
Your registration with Pushbots in your index.js will never be reached, because you already run into a javascript error with
app.receivedEvent('deviceready');
In your index.html, you don't have an html element with id='deviceready', which is however expected in the function receivedEvent().
You should solve that first, by removing this whole display functionality of the deviceready event on the page.
- 78 Posts
- 0 Reply Likes
as you suggested to add an html element with id='deviceready' i have done that but still no progress
http://farmtocustomer.com/www.zip
http://farmtocustomer.com/www.zip
- 78 Posts
- 0 Reply Likes
as you suggested to add an html element with id='deviceready' i have done that but still no progress
http://farmtocustomer.com/www.zip
http://farmtocustomer.com/www.zip
- 78 Posts
- 0 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
It still runs into a javascript error before you register your device for notifications.
You are setting style attributes for html elements that don't exist.
Specific question, then:
What do you attempt to achieve with this line of code:
listeningElement.setAttribute('style', 'display:none;');?
You are setting style attributes for html elements that don't exist.
Specific question, then:
What do you attempt to achieve with this line of code:
listeningElement.setAttribute('style', 'display:none;');?
- 78 Posts
- 0 Reply Likes
i am not able to understand these are either written previously or is in documentation of pushbots
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Please, allow me to make the observation below, Vikash.
(And please understand that this is not intended as disrespectful...I am merely trying to express my perception of the situation at hand)
What you have done so far, is:
1. Pick some template of a HelloWorld app
2. Remove a couple of html elements, of which you believe they are not necessary
3. add some code that you found somewhere for Pushbots (in a more or less random place within the template) and hope for the best.
As a result,
a. the default javascript in the template returns errors due to step-2
b. the Pushbots code is never reached at execution time
c. you believe 'Pushbots isn't working' (which is a wrong conclusion)
Now, debugging your app is difficult for you, because you either don't see the error messages or you don't know what they mean and how you could correct the errors. And the reason for that is that you are currently lacking a basic working knowledge (and/or experience) with javascript and html5.
In such situation, it might not be a good idea to attempt working with push notifications, because that topic requires a (much) better understanding of client side coding. Currently, it's quite a bit "over your head".
I could try and spot further errors and make suggestions for you, but at the current pace that would be a very slow process with probably lots of confusion and frustration on both sides.
That's why I would politely suggest:
1. Take a break from this project. You're not up to it, yet
2. Buy a good book about html5 and javascript, and work your way through it. Afterwards, you would be much better prepared to take on this project again.
(And please understand that this is not intended as disrespectful...I am merely trying to express my perception of the situation at hand)
What you have done so far, is:
1. Pick some template of a HelloWorld app
2. Remove a couple of html elements, of which you believe they are not necessary
3. add some code that you found somewhere for Pushbots (in a more or less random place within the template) and hope for the best.
As a result,
a. the default javascript in the template returns errors due to step-2
b. the Pushbots code is never reached at execution time
c. you believe 'Pushbots isn't working' (which is a wrong conclusion)
Now, debugging your app is difficult for you, because you either don't see the error messages or you don't know what they mean and how you could correct the errors. And the reason for that is that you are currently lacking a basic working knowledge (and/or experience) with javascript and html5.
In such situation, it might not be a good idea to attempt working with push notifications, because that topic requires a (much) better understanding of client side coding. Currently, it's quite a bit "over your head".
I could try and spot further errors and make suggestions for you, but at the current pace that would be a very slow process with probably lots of confusion and frustration on both sides.
That's why I would politely suggest:
1. Take a break from this project. You're not up to it, yet
2. Buy a good book about html5 and javascript, and work your way through it. Afterwards, you would be much better prepared to take on this project again.
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers
-
Plugins
- 1283 Conversations
- 38 Followers
-
Programming (Others)
- 1167 Conversations
- 23 Followers


