New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppCenter Distribute #225
Comments
@frankenthumbs We don't support In-app updates in RN SDK at the moment. We'll add it to our backlog but there is no ETA. In the meantime, you can use CodePush service to update your application directly on users devices. You can find more information here - https://docs.microsoft.com/en-us/appcenter/distribution/codepush/ |
Any updates ? Curious if this is on the roadmap. |
@justinmahood This is not in our mid-term roadmap. We suggest using our Distribute CodePush service for updates in your RN app. |
This doesn't help for native code updates backing RN apps, and really hinders quick adoption of internal builds. :( Have been so excited using the rest of the appcenter stuff, very disappointed to not have in app updates here. Maybe better to switch back to hockeyapp until the SDK supports it. |
I went through some of the basic AppCenter Distribute install instructions here for iOS, and adapted others:
I then went ahead and compiled it and pushed to a branch of my VSTS repo, then queued a build to push to app center (with sequential version numbers). Installed and ran it and it had me login as normal and closed the webview. Then queued a second build fo the same code, had it push to app center, then foregrounded the app on iOS and it popped up the automatic update prompt dialog! |
@deregtd glad it worked for you that way. I would add to make sure the version of distribute module matches the version of Also for Android, adding dependencies {
def appCenterSdkVersion = 'sameVersionAsAppCenter Java, Not ReactNative'
implementation "com.microsoft.appcenter:appcenter-distribute:${appCenterSdkVersion}"
} The right version should be extracted from the appcenter And in
Should work too. |
Hey everybody, I am also very much interested in this feature. We have changes to our native code quite frequently, so using only CodePush is not enough. At the moment we are still using HockeyApp, but we are considering switching to App Center soon. Not being able to distribute builds could be a major blocker for this. I know that as @deregtd and @guperrot described, we can work around this by simply using the native ios and android sdks. But I would still much prefer a solution which is integrated into the react-native sdk. It just looks much cleaner. Any update on if this is being worked on / on the roadmap? |
@johannesloher Unfortunately, it's currently not on our roadmap to support in-app updates in React Native SDK. The solution is to either use CodePush or the feature directly from native iOS or Android SDK. We will keep this thread posted once we decide to support it in the SDK. |
That's unfortunate, but thanks for your quick reply. I believe we can live with the workaround. |
Hello. I am trying to setup this in my android app but have issues. I added in gradle |
Hi @Jalson1982, can you share VERBOSE logs with me? |
@Jalson1982 you also need the lines (as @guperrot mentioned, but without the extra import)
|
Hello, am wondering if you're still not considering this on your roadmap. |
I made an attempt at writing a wrapper for AppCenter Distribute. Focusing on Android for now. Problem is that the AppCenter Android SDK 2.3.0 relies on the By the time we want to initialize AppCenter from the React layer, |
To be supported officially it would need to be a native module just like we did for Analytics where we also rely on onResume. Now in the meantime the simplest way is to probably to modify MainApplication.java and do add
Before The onResume event will not be missed by the module that way. |
Thanks for the reply 👍 Yeah to get something working instead I have used directly the AppCenter Android SDK, rather than the ReactNative SDK. Problem with the snippet above and the |
Even when using the Java Android SDK in java/kotlin apps there is no manual check, it's done when the app resumes. So that means there is no API to bind from Javascript just yet, it's only about setting up and lifecycle in the native code. If you want to control whether the SDK is enabled or not, that's a different story. You could do the same thing as we do for Analytics where we can configure it to be disabled by default and expose Javascript method to wrap the setEnabled call. If that's the use case you can write a native module equivalent to Analytics. |
Thanks. In the above, I am more interested in initializing AppCenter Distribute from the JS layer and the manual check scenario (not relying on the Activity lifecycle). Not really whether the SDK is enabled or not. In the unofficial HockeyApp react-native wrapper it's corresponding to those methods: But meanwhile, I can totally work with the AppCenter Android native SDK. |
Any news on this? Is it still not supported for React Native? |
We didn't really need any AppCenter specific features, so we simply switched to Applivery which seems to work quite well with React Native. |
Hi guys, Please kindly note that our team is focused on improving reliability and performance for App Center to around mid-2021. Because of this, we won't be making much progress around most feature requests. |
Has anyone had any success with @deregtd's approach with Private groups at all? I've tried to set the [AppCenterReactNative register];
[AppCenterReactNativeAnalytics registerWithInitiallyEnabled:true];
[AppCenterReactNativeCrashes registerWithAutomaticProcessing];
MSACDistribute.updateTrack = MSACUpdateTrackPrivate;
[MSACAppCenter startService:[MSACDistribute class]]; I tried setting the delegate to #import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>
#import <AppCenterDistribute/AppCenterDistribute.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, MSACDistributeDelegate>
@property (nonatomic, strong) UIWindow *window;
@end [MSACDistribute setDelegate:self];
MSACDistribute.updateTrack = MSACUpdateTrackPrivate;
[MSACAppCenter startService:[MSACDistribute class]]; |
As we do not have plans to add support for this feature in the next year, I'm closing the issue. |
Hey y'all,
It seems like currently, there is no way to notify a user to download a new
ipa
orapk
file when appCenter has been updated similar to what we see inMSDistribute
andDistributeListener
interfaces found here:Is this a planned feature?
The text was updated successfully, but these errors were encountered: