Pushsharp push notification only works with Sandbox and not production - push-notification

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.

Related

unity app crashes, when login with google using firebase

I am trying to add a 'sign in with google' option to my app, using firebase. However when I click the button which calls the sign in script on my android device, the app crashes and closes completely.
I cannot run this script in the editor. so is there another way of finding out what the error is?
I am using the script found here https://www.dropbox.com/s/qss2wk4v52d48j4/GoogleSignInDemo.cs?dl=0 and have taken the web client id from my firebase project, and enabled google sign in.
I have also added the sha1 fingerprint to my firebase project and have copied the google-services.json file to my unity project. I am using Unity 2020.1.6f1 My firebase packages are version 10.2.0 and the google sign in plugin 1.0.4
I have no idea why it's not working please help me.I finding the solution but no result
[Solved]
I upgrade my pc windows 7 to windows 10 and upgrade unity 2020 to unity 2021 then it automatically fix and work.Thanks for all

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.

Can Meteor-based-ios app access data from my own server?

I'm new to Meteor and made a very simple meteor-based ios app for personal use and interest, which read data from MongoDB provided by Meteor. I have a quick question and I just want to make sure that I am not spending time on meaningless work.
What I have done is "meteor run ios-device", and it works pretty well that under the same network (wifi) the app on ios could read data from the localhost:3000 on laptop (Mac). Also, I have learned that it is easy to deploy a meteor app on my own server, just run "meteor build /path/to/buildFile --architecture..." and move the bundle to the server to set up; however, then I got confused about this: after the app is deployed to a server, is it possible that the app on ios also able to access to that server?
In short words, app ios works fine with localhost, so is there a way to make it works fine with web hosting so that the app does not need to connect to the same network as the host?
Note that I didn't purchase Apple developer account that could release app to AppStore, so I can only use "real machine debugging". Will this disallow me to make app on ios access the data from my own server?
Thanks for any advance!
Update:
I have successfully deployed my project on my own OpenShift server so that I could access it within any networks in browsers. So my point is how do I build an ios app for this project so that I can also access it in iPhone within any network. I have tired run "meteor run ios-device --mobile-server=[my own openshift server]:8000", and when I build the app for deploying I ran this "meteor build ~/some/path --server=[my own openshift server]:8000". This seems does not works. Still waiting for advance!
You are describing one of the main use case of Meteor.
Refer to:
Meteor Guide > Mobile > Configuring your server
Meteor Guide > Mobile > Building for production
To summarize:
When building your Meteor project, if you have ios and/or android platform(s), Meteor will require you to specify the --server option with the URL of the server where your Meteor server bundle will be deployed.
That way, your app will know where to connect to.
Note that you may not need to go through Apple App Store, as long as you do not need to distribute your app. You can simply use the Xcode project (generated by meteor build) to install your app directly on your iPhone.

IBM Worklight : Flow of sample Push Notification project seems wrong on windows phone

I am running the sample push notification hybrid project provided by IBM in windows phone environment. When the app starts, the screen with the four buttons loads up first. Is this the normal flow for the app or should the login page load first followed by the page with the four buttons ? I didn't face this issue while working on android environment.
The sample application for push notification does not come by default with the Windows environment. It comes with the Android environment.
To force the application to start with a login screen also on Windows you'll want to protect the application with a security test.
Open application-descriptor.xml, find the Windows environment element and add the following attribute: securityTest="your-custom-securitytest-name" (like the Android environment).

VS2015 + Cordova + HockeyApp +Windows Mobile

Anyone have experience/documentation integrating the HockeyApp SDK into a VS2015 Community Windows 10 Mobile Cordova app and adding the version to the HockeyApp dashboard?
When I use HockeyApp on my Windows device, I see the following error when I try to install
This App cannot be installed over the air.
I packaged the app using Project > Store > Create App Packages and uploaded the .aapx from the AppPackages. I select no when the wizard asks if Do you want to build packages to upload to the Windows Phone
Store?
Any thoughts?
In addition, When I upload the release apk, or aapx I get the following on the HockeyApp dashboard.
No statistics found. Please integrate HockeySDK to collect analytics, crash reports, and feedback:
Note: I am using the cordova-hockeyapp-plugin for Android and IOS.
https://github.com/wnyc/cordova-plugin-hockeyapp
Right click your project and select store, then click Create App Packages. Select no as you mentioned, click next, you can set Version and output type in the page. Check ARM and click create button. You may upload .appx file to Hockeyapp. Hockeyapp will create a new project in the dashboard.
Did you sign your app for company app distribution as described here?
If yes, please upload your .aetx token to the app page, then the download page should offer both files and the installation should work.
Did you set the right App ID? Does the version exist on HockeyApp? If you set right, the crash report will appear.
This App cannot be installed over the air. error appears because an .aetx is required. An .aetx is generated using a purchased Enterprise Mobile Code Signing Certificate from Symantec Corp and AetGenerator.exe
However, if you want to use the native HockeyApp for sideloading on the device, you'll still get This App cannot be installed over the air.
Note: An .aetx is not necessary for sideloading Windows 10 mobile apps. Unfortunately, the native HockeyApp does not have the ability to download and install the app for sideloading. Instead, the app should be download and sideloaded to the device via the web ui.
Solution:
Purchase Symantec Certificate to create .aetx
or
Sideload apps using the HockeyApp web ui.
Hope this helps!

Resources