value of type 'ProcessInfo' has no member 'androidContext' #683
-
|
I am trying to use Skip Revenue and the documentation says to use let activity = ProcessInfo.processInfo.androidContext for Android however it does not work. I have ProcessInfo.processInfo.dynamicAndroidContext() however that doesn't work with billing and throws and unknown error when trying to to perform the purchase ❌ RevenueCat purchase failed: Unknown error Of course this is my logging however not sure how to fix this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
/// The Android context for the process, which should have been set on app launch, and will fall back on using an Android test context.
///
/// Note that this API is accessed via JNI in `SkipAndroidBridge.ProcessInfo`.
public var androidContext: android.content.Context! {
// androidx.compose.ui.platform.LocalContext.current could be used, but it is @Composable and so can't be called from a static context
launchContext ?? testContext
}It's in there. Can you provide a code sample? Something that reproduces your error in a minimal |
Beta Was this translation helpful? Give feedback.
Got it figured out