Skip to content
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

Cordova-plugin-nearbee : Ionic IOS - Background notification click unable to go to particular page in ionic app #3

Open
krithikuntukad opened this issue May 23, 2019 · 6 comments

Comments

@krithikuntukad
Copy link

When background notification is received and user clicks on notification user navigated to first screen of application , but how to configure it to open particular screen( Any required screen ) of the application

When built with ionic command getting error - Even though it plugins exposed methods are working, These error might affect during app store upload of app.. Is there a way to avoid these erros. For ionic app it is compulsory to use ionic commands to build the app..

@sachinmobstac
Copy link
Contributor

Hi @krithikuntukad, we are aware of the issues and we will be releasing a new version with the fix soon.

I have raised an issue with the Cordova iOS regarding the issue. Please track it here.

@sachinmobstac
Copy link
Contributor

Hi @krithikuntukad, We have fixed all the issues and released a new version 1.0.0. Please update.

@krithikuntukad
Copy link
Author

Hi @sachinmobstac ,

I have installed latest nearbee cordova plugin.
I am getting following error:No visible @interface for 'NearBee' declares the selector 'displayContentOfEddystoneUrl:'
So modified

  • (void)launchUrl:(CDVInvokedUrlCommand *)command
    {
    NSString *url = [command.arguments objectAtIndex:0];
    // [self.nearBee displayContentOfEddystoneUrl:url];
    [self.nearBee displayUrl:url];

    NSString *msg = LAUNCH_URL;
    CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:msg];
    [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
    }

After modification building through ionic command line is success.

But here are the scenarios which plugin is not supporting:

  1. When application is in background it is not triggering notification to user .

  2. On click of notification is cannot be handled - most of notification plugins provide this delegate method.
    3)Startscanning will scan for beacons and notify user with notification in device notification bar( only when app is killed(not consistent)) and nearbeeNotifications will provide notification object .But When application is killed user is notified with notification(not consistent) and on click of notification app is launched but app will not have any notification object to display to user.

  3. Receiving notification from beacons are not consistent with this plugin and also in existing near bee app.

Please let us know is it possible to provide these features in cordova plugin?

@sachinmobstac
Copy link
Contributor

Hi @krithikuntukad, On iOS NearBee uses other pods as well and we found a bug in EddystoneScanner pod. We have fixed it and released a new version 1.2.10.

Can you please run the below commands and test the plugin and do let us know.

cd to iOS project root directory
rm -rf Podfile.lock
rm -rf Pods/
pod repo update
pod install

@krithikuntukad
Copy link
Author

Hi sachinmobstac,

I have followed above steps:
PODs versions:
Installing EddystoneScanner (1.2.10)
Installing NearBee (2.1.0)
Installing Socket.IO-Client-Swift (15.1.0)
Installing Starscream (3.1.0)

and NearBeeDebugMode is set to true.

Still the behaviour remains same. Existing near bee app also not showing any notifications now.

@krithikuntukad
Copy link
Author

Hi sachinmobstac,

Please let me know if the addressed bugs are fixed in the upcoming plugin releases...

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

2 participants