react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Abstract class CodePushOptions can't create object: react-native-code-push package not building with react native windows(c# app)

Open rahman2835 opened this issue 3 years ago • 4 comments

Problem Description Hi Team,

We were working on code push for native windows app which is c# app(app.xaml.cs). We manually link the code push library to Visual Studio solution as Exiting App and added the reference of CodePush to my actual app. But we were getting an error like 'can't create the object for abstract class'

Below are the steps we followed for manual linking.

  1. install react-native-code-push
  2. add code-push library to Visual studio solution.
  3. add reference CodePush to our c# app.
  4. add code-push package provider in app.xaml.cs file. Example: PackageProviders.Add(new Microsoft.CodePush.ReactNative.ReactPackageProvider());

Expected Results: The build should be success and the app should be launched fine.

Environment: Screen Shot 2022-06-24 at 4 21 58 PM

NOTE: react-native-code-push library is working fine with 0.63.0 react native version. But the problem with 0.67.0 react native version and its a c# project with manual linking of react-native-code-push.

We have seen, similar kind of issue logged here in react-native-code-push repo. Below is the defect Id. https://github.com/microsoft/react-native-code-push/issues/2235

Please suggest us the work around.

Thanks Rahman

rahman2835 avatar Jun 24 '22 10:06 rahman2835

@chrisglein FYI

rahman2835 avatar Jun 24 '22 10:06 rahman2835

@djalmaaraujo @joenoon @corymsmith @qingfeng @arunvenkat1911

rahman2835 avatar Jun 24 '22 10:06 rahman2835

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost avatar Aug 23 '22 13:08 ghost

any update on this issue

rahman2835 avatar Aug 26 '22 13:08 rahman2835

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost avatar Oct 25 '22 17:10 ghost

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

ghost avatar Nov 09 '22 18:11 ghost