IOS Push Notification Error - push-notification

I am trying to develope PushNotification app for IOS. I download the sample code from IBM Getting Started Tutorials. I create NativeAPi Project in IOS and copy the file of sample project in this project. My IBM worklight version is 5.0.5. When i deploy this project in Native API but its giving these error in console:
Activating Worklight project: IOS...
[2013-03-28 16:59:56] Worklight Server stopped successfully on localhost:8080
[2013-03-28 16:59:57] Worklight Server started successfully on localhost:8080
[2013-03-28 16:59:58] FWLST0011E: ====== Worklight Project IOS-project-customization failed to start: Class 'com.worklight.core.auth.ext.RejectingLoginModule' defined in login module 'rejectAll' in the authentication configuration file doesn't exist.
[2013-03-28 16:59:58] Activation failed. Bundle didn't start:C:\Users\Mohsin\workspace3\IOS\bin\IOS-customization.jar
Any help would be appreciated

The samples at http://www.ibm.com/developerworks/mobile/worklight/getting-started.html (where I assume you got your sample code) are intended for Worklight V5.0.6. You will receive the error you saw when you try to use a V5.0.6 sample with an older version of Worklight (v5.0.5 in your case). Your best bet is to update to V5.0.6.

Related

Firebase asp.net push notifications works locally but not deployed

I have a 2019 ASP.NET basic project for push notifications using Firebase and swagger and it works locally (i receive the message to my device). When I publish the project to the local file system and put that on the windows server (iis 10) it does not send the push notification, just reports:
{
"isSuccess": false,
"message": "Something went wrong"
}
What could the problem be? Is there a way to get a more detailed error?
I uploaded the launchSettings.json with my domain name set in the same folder which is not created when published but that made no difference.
Figured it out, the error was being handled in the code in a try catch so I just had to show the non-sanitized version of the error.

Debug Firebase hosted Flutter Web app locally in Android Studio

I have a Flutter web application that is hosted in Firebase.
I'm using the setup described here to load the correct firebase configurations depending on the Firebase environment the application is running in.
My trouble is now I want to be able to debug this locally in my IDE.
I can run the application locally using firebase serve, which starts the webapp (e.g. on localhost:5000) and serves the correct firebase config based on the environment/alias I'm using, that's all nice and good.
My question is whether it is now possible to debug that running application in Android Studio? I know there are ways to do this in Visual Studio code, but I'd rather find a setup that works with AS if possible.
I could also debug the application by clicking the debug button in Android studio, and that will try to launch the application, however it will fail to start since it wont be served the firebase config file correctly (since this is firebase serve does for us).
Is there a way to combine the debugging capabilities of Android Studio with the firebase serve command to give a working application that's debuggable in my IDE?
Thanks in advance,
Gary

Test dynamic link on iOS without publishing first to the app store

My flutter project is using firebase_dynamic_link package. I followed the instruction to register both my android and ios app on the firebase console without any problem. I've tested it out on android and it's working fine, opening the app I have running.
On iOS, I was expecting it to open the app I have running on it, instead I just get redirected to a preview page link.
Is it not opening my ios app because :
It's not yet published on the app store ?
Or is it because of an error in setup?
You can disable it in Firebase Console when you create/edit the dynamic link.

Pushsharp push notification only works with Sandbox and not production

Hi all I am new to iOS development, I have put in the deep end to get push notifications. I found pushsharp and was using this tutorial
Tutorial I a using
I have used a windows application instead of web application and added the latest pushsharp. The code build and runs and I can get the push notification but only on sandbox.
I build my iOS app
Open the ipa on my iPad in xcode to install
once installed open the app and select allow to allow remote notifications
Get the device token when the app is opened and stick it in my winforms app
send a push using push sharp and bada bing bada boom it works like a charm.
I want to be able to use my production certificate as well. So I created a provisioning profile for App store. Created a signing request, created a certificate and in my provisioning profile section on apple portal i can see my new provisioning profile
I am able to build my iOS app successfully however when i try and install the ipa onto my ipad i get an error
App installation failed
a valid provisioning profile for this executable was not found
Is there a step which i have missed? Why do i get app installation error.
What will happen if I release a app which is using devcertificate to show push notifications?
You can't use a distribution provisioning profile to run the app on your ipad directly.
The iOS Distribution certificate can only be used to build an app that will be installed via the App Store.
You need to use either a development profile, or an enterprise distribution profile to install on test devices.
If you want to test a beat version, you can test the app using TestFlight.
Here are some way to test a beat version.
What will happen if I release a app which is using devcertificate to
show push notifications?
You have to use a production push certificate to push notification in release mode.

.app file not recognized by Appium

I am trying to launch my app in Appium by providing the .app file of my app.
But its throwing an error message -
"Be sure the Appium server is running with an application opened by using the "App Path" parameter in Appium.app (along with package and activity for Android) or by connecting with selenium client and supplying this in the desired capabilities object."
I took the .app file path from Xcode
after building the project.
Has it anything to do with the build process ?
App should be Debug enabled and it should run on device. I think which you have taken (.app file) will work on Simulator not on device.
app should be a debug build.
for ios bundle id is required and not package and activity name.

Resources