Discussions
REST API 400 BAD Request
{
"status": "failure",
"message": "URL cannot be empty"
}
Posted by Praveen Kumar Mushnam almost 6 years ago
Get
Hi, I need help
I'm trying build a status message in view, like "Browser Enable" or "Browser Blocked". So, I made this:
if(pushcrew.isAPIReady) {
if (console.log(pushcrew.subscriberId) === false){
$('.inactive-push').attr("hidden",false);
} else if (console.log(pushcrew.subscriberId) === -1){
$('.blocked-push').attr("hidden",false);
} else {
$('.active-push').attr("hidden",false);
}
}
I can run this in console normally, and work right, but, when I try put this in my code, I get a error like "Uncaught ReferenceError: pushcrew is not defined"
Posted by Lucas Marques about 6 years ago
Subscriber with problems
In last days,I saw some crazy problems, some users haven't receive push notification and others in the same group receive normaly, all this users have push notification ID, and have notification "alow" for pushcrew in browser and I checked the the permition and everything are okay. What I can check also?
Posted by Lucas Marques about 6 years ago
Get List of Segments
Here in your documentation: http://api.pushcrew.com/docs/get-list-of-segments you tell to use a GET method but which variable do I have to pass? I created a segment category but I forgot to uncomment the result so I don't have an ID of my segment
Posted by Marco Argenti over 6 years ago
Location of notofication
I need to know how i can to set location of notification?
I need that it will be top-middle/
With cod like:
<script type="text/javascript">
(function(p,u,s,h){
p._pcq=p._pcq||[];
p._pcq.push(['_currentTime',Date.now()]);
s=u.createElement('script');
s.type='text/javascript';
s.async=true;
s.src='https://cdn.pushcrew.com/js/e4eb09399a4d14f21e3142f0724e1ee9.js';
h=u.getElementsByTagName('script')[0];
h.parentNode.insertBefore(s,h);
})(window,document);
</script>
I get it but i cant't to change content
With PHP API i can to change content but location is buttom right!
How i can to change location?
Posted by Anton over 6 years ago
one click unsubscribe is not working
Hi Guys
I am using below code to unsubscribe notification.
_pcq.push(['triggerOptOut']);
user is not able subscribe again until they click twice on unsubscribe button even after page refresh.
suppose there is 2 button "subscribe" and "unsubscribe" which will display according to condition
Here is the flow
1). user click on subscribe button and allow notificaiton from pushcrew.com then display "unsubscribe" button
2). user click on unsubscribe button which open window with help image, user unsubscribe with help of browser window option then display "subscribe" button
3). user click on subscribe button again but it does not work untill user click on unsubscribe button again -> open browser window and close it
Please help me to track this issue,
Thanks in Advance
Posted by Arun Rai over 6 years ago
Customizing PushCrew popup design with HTML/CSS?
Is it possible?
I added some CSS to my page that seems to change some of the design, but it seems like most of the CSS is inline and cannot be overriden.
I can't find anything about that in the docs.
Can it be done?
Posted by Adam over 6 years ago
Firefox Push Notification on Android
Hi! I was trying to click on "See it in Action" button on Pushcrew website on Firefox Android. But it did not ask me for Push Permission. So, is Firefox on Android supported?
Posted by Ankit Gupta over 6 years ago
Firefox Push Notification on Android
Hi! I was trying to click on "See it in Action" button on Pushcrew website on Firefox Android. But it did not ask me for Push Permission. So, is Firefox on Android supported?
Posted by Ankit Gupta over 6 years ago
Firefox Push Notification on Android
Hi! I was trying to click on "See it in Action" button on Pushcrew website on Firefox Android. But it did not ask me for Push Permission. So, is Firefox on Android supported?
Posted by Ankit Gupta over 6 years ago