Skip to content

Push not sent using parse client code IOS #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sourcebit opened this issue Aug 23, 2015 · 2 comments
Closed

Push not sent using parse client code IOS #94

sourcebit opened this issue Aug 23, 2015 · 2 comments

Comments

@sourcebit
Copy link

Hi,
Im not receiving the push on my device using the push client code below on other IOS device.
PFPush *push = [[PFPush alloc] init];

        NSString *to = [[[AppDelegate appDelegate].sendTo componentsSeparatedByString:@"@"] firstObject];

        [push setChannel:[NSString stringWithFormat:@"z%@",to]];

        [push setMessage:@"dscxvx"];

        [push sendPushInBackgroundWithBlock:^(BOOL succeeded, NSError * __nullable error) {

            if (succeeded) {

                NSLog(@"succeeded");

            }

            NSLog(@"error==%@",error.localizedDescription);

        }];

Below are some observations that i feel are correct so that i should receive a push but unfortunately it doesnt.

  1. I have enabled the client key in parse website(settings push).

  2. The channels are set in core for both the IOS device along with the device tokens

  3. I have cross checked the channel name set in my IOS code with the one set in parse website core section.

  4. When check the push section in parse web site it shows the push as sent to 0 devices.

  5. Also The push works when i send it from parse website to all devices and by rest api too using postman extension for chrome.

  6. In the above code "succeeded" is printed in console and error is Null.That shows push is sent but was never delivered to any device.

Only sending the push through client code doesn't work for me.

My Email id registered with parse is [email protected] case you need to check the above information i cited.

Please help.

Thanks,

AD

@richardjrossiii
Copy link
Contributor

Thanks for the report! We'll definitely look into it. Have you verified that your channels are correct? It would appear your stringWithFormat: has a 'z' preceding it, I assume that is intentional?

Also if you could create a small reproducing project here on github, it would greatly help us track down this bug.

@sourcebit
Copy link
Author

Hi Richard,

I have figured out the problem as the channel name used had alp lower case
letters and I was sending the push to a channel with capital letters.

Thanks for help.
On Aug 24, 2015 10:38 PM, "Richard Ross" [email protected] wrote:

Thanks for the report! We'll definitely look into it. Have you verified
that your channels are correct? It would appear your stringWithFormat:
has a 'z' preceding it, I assume that is intentional?

Also if you could create a small reproducing project here on github, it
would greatly help us track down this bug.


Reply to this email directly or view it on GitHub
#94 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants