App Signing Expo app for submit to Huawei App Gallery - react-native

I have an Expo React Native app, which I have successfully submitted to AppStore and PlayStore.
However, I need to submit it to Huawei App Gallery.
The step I'm stuck is the "App Signing" where I need to provide certificates.
I don't know how to get the certificate.pem and encryptedPrivateKey to submit my aab file.
I used expo fetch:android:upload-cert and got app_upload_cert.pem, but I'm lost on encryptedPrivateKey.
Has anyone faced a similar issue?

It is recommended that you refer to this docs, use the following command:
java -jar pepk.jar --keystore test.jks --alias test --output=output.zip --encryptionkey=034200041E224EE22B45D19B23DB91BA9F52DE0A06513E03A5821409B34976FDEED6E0A47DBA48CC249DD93734A6C5D9A0F43461F9E140F278A5D2860846C2CF5D2C3C02 --include-cert
This is the App Signing Operation Guide video for your reference.
You could click here to try out.

For anyone using expo, run expo fetch:android:upload-cert, and the .pem file that you receive can be used in the Huawei app store: at the 'app signing' section, select the option 'Let AppGallery Connect create and manage app signature for me', click browse and select the '.pem' file you just received, and submit. Done!

Related

React Native Expo AuthSession; Google Authentication

I’m trying to setup the Google authentication using AuthSession in Expo documentation (without Firebase)
https://docs.expo.dev/guides/authentication/#google
The first problem is, that the slack example doesn’t work: on the devices and simulators nothing happen after pushing the button, and in web mode it returns an error
Error 401: invalid_client
The OAuth client was not found.
What I’ve done using steps in documentation:
I’m not sure if it’s necessary, but I’ve installed yarn add expo-application
I’ve registered in Credentials page (Google Cloud Platform)
Logged in using expo login, in the terminal where I was starting expo start
Created a new Google Client ID that will be used with expoClientId
(Image) New Google Client ID setting image
( I'm not allowed to input images now )
(Don’t know if it’s necessary) I’ve created a project in https://expo.dev/ and then published the project using dashboard of expo start
(Image) Setting for "publish" in expo start dashboard
Where:
“expo”: {
“name”: “rn-my-project”,
“slug”: “rn-my-project”,
“version”: “1.0.0”,
“orientation”: “portrait”,
…
}
Using the code in the example, provided in documentation for Google, I receive null as response.
As I understand, this should be enough to test the Google Authentication using AuthSession in Expo Go app. I also made iosClientId, androidClientId and webClientId, but I’m not sure if I made everything correct.
Will be glad for any help, because I couldn’t find any person with the problem as mine.
Yours sincerely.
P.S. I've successfully set up logInAsync for Google using this documentation, but it's written, that it is deprecated.

FCM: Mismatched Sender Id when trying to send notification to Expo app

I have a backend that send fcm to web app and expo apps. Double checked all the credentials. But still unable to get it work. Both of the credentials are under same project. Backend is using firebase admin, with service account. Front end is using google-services.json. Anyone encountered this?
Found out that the device token from expo-notification can only be used on standalone build. But not in expo-client during development.
https://forums.expo.io/t/using-fcm-as-push-notification-with-expo-client/42402/2?u=cyee
This is the copy paste comment by expo team.
Hi! If you want to send notifications directly through FCM, and not
through the Expo notifications service, you’ll have to test in a
standalone app (as in, an app you built with expo build:android). This
is because you don’t have the push credentials for the Expo client
app, only we do :slight_smile:
If you want to test in the Expo client app, then you can do that with
Expo’s notifications, which you can read more about here-
https://docs.expo.io/push-notifications/overview/

React Native Push Notifications doesn't receive notification

I have a React Native app (testing on iOS) and am trying to incorporate Push notifications. I am using the following module:https://www.npmjs.com/package/react-native-firebase-push-notifications.
I tried running example app code and am able to obtain
a (1) message token and (2) successfully obtain permissions from my device.
I am trying to send a test notification from Firebase and am using my device's token. However, nothing happens upon triggering a test notification. Any tips? I believe I followed the key upload instructions correctly (https://firebase.google.com/docs/cloud-messaging/ios/certs)
I hope you have uploaded pem/p8 file on firebase console at "Cloud Messaging" in Project settings. Check this image
I figured it out! Although I thought I had done this in the past, I did not have Remote notification enabled in background modes, nor did I have Push notifications checked in the Signing & Capabilities section of project setting on Xcode. Thank you!

React Native Expo: Update existing app without using OTA

I have published the app before using expo cli and let expo to handle all the credentials & apple certificates for me. And now I have changed the app name. How can i update the existing app? Where to get the .p12 file? From my apple developer account, I have download the .cer file but it's type is Apple Push Service which is unable convert to .p12 file. As my understanding, we need a certificate file which type is iPhone Distribution.
You can fetch the distribution certificate (p12) using this expo command:
expo fetch:ios:certs
You should be in the project root and it will write the certificate on disk and print the password.
Also make sure you are logged in with the right user (use expo whoami to check the user and expo login to login).

first react native app, bypass app store?

I'm making my first app in react-native for iOS, I want friends to install it with going through expo first, just have it in their home screen, is there a way to deploy without using the app store and getting approved? if it's not for the masses?
First Add device UDID in apple account then create IPA file. Using below command. It will ask you developer account credential. Make sure you've subscribe developer membership.
exp build:ios
And share link with your friend using diawi