2

I have an application that receives push notifications and it registers for push notifications in a background app. The background app is configured as an alternate entry point.

So in all I have two applications and I want to create an alx file that can reference both applications. I want my deployed ALX to to register for push notifications with my server in the background and when I touch the app icon, it should start the normal UI functionality.

I am using BlackBerry jde for development.

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
Sourabh Saldi
  • 3,567
  • 6
  • 34
  • 57
  • First thing, there is no two applications. If you create an alternate entry point, it will run in background and the UI application will run when you click the app icon. – Rince Thomas Feb 06 '13 at 13:49
  • 1
    @signare yes that happens currently but the problem is that when I click the application on device it asks for some permissions when I click it hangs because background application starts run and it looks as if device hangs not sure but does that makes any sence – Sourabh Saldi Feb 06 '13 at 13:53
  • that is the problem of setting the alternate entry point – Rince Thomas Feb 06 '13 at 13:55
  • refer this for creating alternate entry point http://stackoverflow.com/questions/3921029/how-to-setup-alternate-entry-point-in-blackberry-application – Rince Thomas Feb 06 '13 at 13:57
  • http://stackoverflow.com/questions/9265919/how-to-access-main-application-from-alternate-entry-point-on-blackberry – Rince Thomas Feb 06 '13 at 13:58
  • Thanks for help @Signare i have one more doubt if the task that we do in background requires some permissions to run or say application needs some permissions then will our device still run the app in background – Sourabh Saldi Feb 06 '13 at 14:20
  • 2
    The process will be paused in the instruction that needs permission until the user closes the permissions dialog. If the user accepts it, it continues. Else a `ControlledAccessException` exception will be thrown. – Mister Smith Feb 06 '13 at 14:37
  • @MisterSmith the problem is that when I close the permission dialog the device hangs It might be due to background process running !! does that makes sense? – Sourabh Saldi Feb 07 '13 at 04:23

1 Answers1

0

Judging from this comment it seems your problems concern permissions and not bundling. Check these links for an idea on how to invoke a permissions request before doing anything.

The first link also has some sample code.

Community
  • 1
  • 1
Abhishek
  • 473
  • 3
  • 12