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

Web and WebWorks Development

Reply
Visitor
karington
Posts: 1
Registered: ‎11-24-2013
My Device: Blackberry z10
My Carrier: VIP Serbia
Accepted Solution

Blackberry10 pushwoosh - Can't find variable: blackberry

[ Edited ]

I'm also looking for a solution to this.

i have implemented the pushwoosh plugin on both Android and iOS but the blackberry10 seems to be quite a struggle.

I followed this instruction link and i constantly got:

ReferenceError: Can't find variable: blackberry

I then realized that i had to install some plugins... I added:

  • com.blackberry.app
  • identity
  • invoke
  • jpps
  • push
  • system
  • ui.contextmenu
  • ui.dialog
  • utils

At that point the variable blackberry was present and also the push method but no openBISPushListener. Then i get:

TypeError: 'undefined' is not a function (evaluating 'blackberry.push.openBISPushListener(ops, onData, onRegister, onSimChange)')

when i console.log(blackberry); i have under push only PushPayload and PushService.

INFO:

  • Cordova 3.1.0
  • tested on device blackberry Z10
  • OS Version 10.0.10.261

Any help is very welcome.

Thanks!

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Blackberry10 pushwoosh - Can't find variable: blackberry

[ Edited ]

The API you are referencing is a BlackBerry OS (i.e. 5.0 to 7.1) implementation. From what I can gather, PushWoosh is also intended for BBOs.

The APIs themselves have changed for BB10 and openBISPushListener is no longer used. You can find the BB10 documentation here:
http://developer.blackberry.com/html5/apis/blackberry.push.pushservice.html#.create

To implement push on BB10, you'll need to use the WebWorks APIs directly at this time.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
msvishnumkl
Posts: 48
Registered: ‎05-02-2013
My Device: Z 10
My Carrier: airtel

Re: Blackberry10 pushwoosh - Can't find variable: blackberry

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Blackberry10 pushwoosh - Can't find variable: blackberry

Great find! That's some very good information to share.

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.