Provisioning profile for Xamarin Forms iOS Extension - xamarin.forms

Hi all I have created a service extension project in my Xamarin forms solution.
I have enabled App Groups in Entitlements.plist in both the extension project and the main iOS project (group.co.myco.myapp).
I'm getting the following error: Error: Could not find any available provisioning profiles for OneSignalNotificationServiceExtension on iOS.
(OneSignalNotificationServiceExtension)
Do you know how this can be fixed?
Update
I have enabled App Groups and added group.co.myco.myapp on the provisioning profile for my app.
I have created a new identifier (App ID) co.myco.myapp.OneSignalNotificationServiceExtension
I have also created a new provisioning profile for co.myco.myapp.OneSignalNotificationServiceExtension and enabled app groups with the same group name as (1)
Project builds, but when deploying to the device I get the following errors:
(The executable was signed with invalid entitlements.)
Your code signing/provisioning profiles are not correctly configured. Probably you have an entitlement not supported by your current provisioning profile, or your device is not part of the current provisioning profile. Please check the iOS Device Log for details (error: 0xe8008016).
Is there anythig else that can be tried?
Update 2
There was an empty string in the Entitlements file. after removing that it worked.

Related

Google Sign in Fails

I have a Xamarin Forms Application where a user can sign in with Google.
The Google Sign in works fine in debug and Release Mode.
The Google Sign in works fine when I deploy the Application to my Android device or deploy it to Android Emulator.
The Problem occurs when I Archive the File into APK or AAB format.
When I deploy the Application on my Android Device through the APK File Generated by Archiving Google Authentication Fails.
I have created an Internal Testing on Google Play Console, by Uploading the Archived AAB file. The Internal Test also gives the Same Error Google Authentication Failed.
I have added the SHA-1 keys to the Firebase Console. and downloaded Google-Services. Json File and added it to my Android project. With build action as GoogleservicesJson.
I tried Adding the SHA-1 Fingerprint of the App Signing certificate to the FireBaseConsole/Settings/SHA Certificate Fingerprints
This is a common pitfall, which happened to me a couple of times already as well.
Make sure that you don't only register the fingerprints for the different apps in Firebase, also make sure that you have the same fingerprints registered in the Google API Console of your app when working with API restrictions.
On the Credentials page, look for the desired API key, edit it and add the package names and fingerprints in the Restrictions section:

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.

Manual Provisioning on Xamarin IOS development provisioning profile. Which config did it choose?

When I right click on the Xamarin Forms iOS project in VS2017 and choose properties -> iOS Bundle signing, the only way I can get my app to deploy is to choose:
1) "Manual Provisioning" in the Bundle Signing Scheme.
2) "Developer (Automatic)" in the Signing Identity.
3) "Automatic" in the Provisioning Profile section.
4) I then add Entitlements file.
Is there any way of working out what was chosen on my behalf in steps 2 and 3?
Thanks.
What was chosen on your behalf in steps 2 and 3?
Signing Identity
It will automatically choose the Developer teams and generate an AppID for you .Which named as VS and the Bundle Identifier .Such as VS com yourcompanyname appname
Before you start the automatic signing process, you should ensure that you have an Apple ID added in Visual Studio.As described in the Apple Account Management guide.
Provisioning Profile It will generate a Provisioning Profile for you .
Provisioning is the process of preparing and configuring an app to launch on devices and to use app services. Development Provisioning Profiles holds the device identifiers ( UUID ) that is eligible to run your app. Distribution Provisioning Profiles can include App Store profiles, that lets you distribute your app to the App Store and Ad-hoc profiles are good for distributing to your testers.
For more details and differences between Automatic Provisioning and Manual Provisionin you can refer here.

How can I retrieve firebase hosting deploy ID or message inside my webapp?

For logging purposes I´d like to print to console or even display the current deploy ID (or message) of my firebase web app that is being accessed by the browser.
Firebase Hosting recently released a new REST API. You can use sites.releases.list to see what version is currently deployed.
Old answer:
Firebase deploy IDs don't appear to be available anywhere via programmatic access. The CLI doesn't support listing current or previous deploys.
My recommendation would be to go in the other direction. Have your source code in a vcs like git. When you build and deploy a new version set the vcs hash or version in the deployed code and as the message for firebase deploy. You can then log the log the source version in your code and you can manually associate that back to a release in the Firebase UI.

cannot archive app xcode 4,codesign error

i recently uploaded my app to app store now i want to upload a new version of it.i upgraded to xcode 4, re downloaded all the my developer and distribution certificate,and tried to archive the app for upload but it wont get archived giveing me codesign error
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 5.0'
so i just deleted everything from my keychain access,xcode organizer and reinstalled everything from provisioning portal
also it when i install the app to my iPad it installs but throws following warning
Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate. (-19011)
i checked all the links on StackOverflow but no luck
If you view the 'Build settings' of your project, and search for 'Code Signing Identity', ensure you have your Distribution provisioning profile selected for the 'Release' option.
Your Distribution provisioning profile is the one you get from:
iOS provisioning portal -> Provisioning -> Distribution.

Resources