Allow user to change App Icon in React Native - ios

Apple specifies that users can change their icon to give a more personalised experience. See docs here:
https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/app-icon/#user-selectable-app-icons
My question is regarding using this functionality in React Native. Building an app in React Native is it possible to access this setAlternateIconName method and provide the user with alternate app icons? Does React Native provide a nice way to interact with this IOS method?

I am currently trying to build this out. This package seems designed to do what we both are looking for, but I haven't tried on anything that I have actually deployed yet.
https://github.com/skb1129/react-native-change-icon

use can use this module react-native-alternate-icons, it allows to access to setAlternateIconName method

Related

Tracking app installation and campaign details without Third-party APIs

For my iOS App, I am using Campaign Links from App Store Connect for advertisement purposes, and sometimes use Branch links.
Is it possible to get Campaign details inside app after installation is done natively without using any third party SDKs?
I would like to know from which campaign the installation came from with apple provided technology.
Is it possible to get the details inside the app programatically?
I have heard that In Android, they can achieve the functionality using InstallReferrerClient of the library com.android.installreferrer:installreferrer
Do we have any similar option for iOS?
Please guide, Thank you.

URL scheme to open Gmail native app from Chrome on Android

I'm trying to implement a feature over on Android, basically, on the web, you can use googlegmail:///co?to=email to open a compose view on the native Gmail app.
googlegmail:/// doesn't seem to work on Android and I'm really unsure if this type of functionality is possible on Android. Even if it exists for some other app, it would be great to get a working example on Android! Any clarity would be appreciated.
On Android you need to use an Intent, which is what allows you to start other apps.
Check out Compose an email with optional attachments for an explanation of how to do what you want.

Add React-native app to 'Activities' panel on IOS

I am looking for informations about to add an App in the 'Activities' IOS panel in order to can add my app to the list of sharing apps.
I don't know if it's automatic or if it need some configuration.
Thanks
This is possible using AppExtensions in iOS SDK.
In React native, the docs talk about App extensions here. And an example app for sharing is available in a github repo.

Apple App rejection due to non native buttons and features

While developing a phonegap smartphone application which runs on ios/android and bb v6+, im using a web service call to google maps and using tags for navigating through the application. I received an answer from apple with the following rejection message:
We found the following issues with the user interface of your app:
- Did not include iOS features. For example, it would be appropriate to use native iOS buttons and iOS features.
Additional user interactive features are needed.
My app has 2 buttons, one for searching and one to view the search results, both of which are non-native, html < button > tags.
Is it possible to use the native iOS buttons with a phonegap project, i.e using the search button (magnifying glass with word 'search' underneath), with a plugin?
Is it possible that my app was rejected for using a Google Maps web service call? if that were the case, i imagine the rejection message would be similar to the rejection message seen in this previous post
Any ideas/suggestions/guidelines would be great,
thanks
You could implement the NativeControls plugin. Judging by your screenshots a the iOS tab bar should work well with your app.
Not using native controls isn't a problem in itself. However, your app is too close to the appearance of a standard iOS settings page, which means that anything which doesn't exactly match that will feel broken.

PhoneGap in regards to App Store approval

I read that PhoneGap is approved by Apple as a framework for building native apps, but I'm not clear on how this does not constitute a "website wrapped as an app," something that Apple specifically doesn't like, as per their App Store guidelines. I'm assuming it is because the JS is contained in the application, rather than running on a remote server?
Any clarification on this issue would be most appreciated.
but I'm not clear on how this does not constitute a "website wrapped
as an app," something that Apple specifically doesn't like, as per
their App Store guidelines.
By this Apple means Apps that simply show a UIWebView that loads a remote website, so it basically just behaves like Mobile Safari, just without the controls. Also they wan't Apps to show at least a UI when the device is not connected to the internet, like in the Facebook App where you can still read already downloaded status updates, view photos etc. That's what a "I just wrap a remote website inside a UIWebView"-App can't do.
PhoneGap Apps have all the resources they need (HTML, CSS, JavaScript) on the device residing in the App's bundle, so using such an App would not depend on network availability and could at least show a UI that tells you to connect to the Internet in order to use the App, or they could display already loaded content (like Facebook, Twitter and so on).
I think that the signature of the binary tells Apple what framework built the application, and since all the supporting files (js included) are included in the project and therefore in the binary, it is a standalone application. That being said, I still think that doing things Natively is the best way to go. I am extremely comfortable with javascript and started out thinking Phonegap was the way to go for me. I did a couple of projects with it and then decided to take the plunge and learn Objective-C. That worked out so much better for me. No dependency on a third party framework and I wish that I had started that way.
Sometimes the easy way out just hurts ya in the end IMO.

Resources