Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
Developer
Posts: 120
Registered: ‎12-22-2011
My Device: ---
My Carrier: ---

Re: push notification issue , please help me

i updated my $data to include the missing param but still get the same error 

 

<?xml version="1.0" charset="UTF-8"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">
<pap>
<push-message push-id="1381243773.4486" source-reference="2550-53737re03i2O7651e5c79i252597aa6s4B6" deliver-before-timestamp="2013-10-08T14:51:33Z"><address address-value="2830384D"/><quality-of-service delivery-method="confirmed"/>
</push-message>
</pap>
--mPsbVQo0a68eIL3OAxnm
Content-Encoding: binary
Content-Type: text/html

Push-Message-ID: 1381243773.4486

test

--mPsbVQo0a68eIL3OAxnm

 

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: push notification issue , please help me

You should be using "unconfirmed" for the delivery-method.

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 120
Registered: ‎12-22-2011
My Device: ---
My Carrier: ---

Re: push notification issue , please help me

still get the same error 

 

<?xml version="1.0" charset="UTF-8"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">
<pap>
<push-message push-id="1381244473.955" source-reference="2550-53737re03i2O7651e5c79i252597aa6s4B6" deliver-before-timestamp="2013-10-08T15:03:13Z"><address address-value="2830384D"/><quality-of-service delivery-method="unconfirmed"/>
</push-message>
</pap>
--mPsbVQo0a68eIL3OAxnm
Content-Encoding: binary
Content-Type: text/html

test

--mPsbVQo0a68eIL3OAxnm

 

Developer
Posts: 120
Registered: ‎12-22-2011
My Device: ---
My Carrier: ---

Re: push notification issue , please help me

do you think the problem with the boundry value ? Is it static value from BlackBerry ? or changed according to app ?

and if changed how can i get it ?

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: push notification issue , please help me

The boundary can be changed as long as it is specified in the header and is the same throughout the message.

 

In your push it looks like you may be missing the boundary at the beginning of the message, could you check?

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 120
Registered: ‎12-22-2011
My Device: ---
My Carrier: ---

Re: push notification issue , please help me

i can't understad " missing the boundary at the beginning of the message, "

 

can you please exapalin with example ?

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: push notification issue , please help me

I posted a sample earlier:

http://docs.blackberry.com/en/developers/deliverables/25167/Code_sample_push_request_604335_11.jsp

 

Notice how the message begins with a boundary element?

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 120
Registered: ‎12-22-2011
My Device: ---
My Carrier: ---

Re: push notification issue , please help me

i added all the required param as listed 

but get the xmldata empty 

 

after sending this $data and calling $xmldata = curl_exec($ch); i got response empty string 

 

--PMasdfglkjhqwert
Content-Type: application/xml
<?xml version="1.0" charset="UTF-8"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">
<pap>
<push-message push-id="1381246725.5573" source-reference="2550-53737re03i2O7651e5c79i252597aa6s4B6" deliver-before-timestamp="2013-10-08T15:40:45Z"  ppg-notify-requested-to="notify_url_path"><address address-value="2830384D"/><quality-of-service delivery-method="unconfirmed"/>
</push-message>
</pap>
--PMasdfglkjhqwert
Content-Encoding: binary
Content-Type: text/html

test

--PMasdfglkjhqwert--

 

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: push notification issue , please help me

Well this part of your message appears incorrect:

 

ppg-notify-requested-to="notify_url_path"

 

Did you change the boundary value set in your message header?

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 120
Registered: ‎12-22-2011
My Device: ---
My Carrier: ---

Re: push notification issue , please help me

I didn't changed any thig i posted the boundry as in the previous post " i don't know is this value right or not ? if you found it incorrect please send me the correct boundry "

 

and about ppg  : I use the standrard tags in the url you told me to follow . I don't know if it cause a problem or not .