
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@icehunter/react-native-play-licensing
Advanced tools
Adds [Client-Side License Verification](https://developer.android.com/google/play/licensing/client-side-verification) to React Native applications. Works on both Android and iOS, but only verifies licenses on Android.
Adds Client-Side License Verification to React Native applications. Works on both Android and iOS, but only verifies licenses on Android.
npm install react-native-play-licensing
react-native link react-native-play-licensing
In android/settings.gradle
...
include ':react-native-play-licensing'
project(':react-native-play-licensing').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-play-licensing/android')
In android/app/build.gradle
...
dependencies {
...
implementation project(':react-native-play-licensing')
}
Register module in MainApplication.java
import com.github.icehunter.playlicensing.PlayLicensingPackage; // <--- import
public class MainApplication extends Application implements ReactApplication {
......
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
......
new PlayLicensingPackage(), // <--- add package
);
}
......
}
To use the react-native-play-licensing package in your codebase, use the PlayLicensing module:
import PlayLicensing from 'react-native-play-licensing';
export default function (App) {
// ...
const [licensed, setLicensed] = useState(null);
useEffect(() => {
PlayLicensing.verify('MIIBIjANBgkqhkiG...').then(setLicensed);
}, []);
// do something if app is not licensed
// ...
}
verify(BASE64_PUBLIC_KEY, STRING_FOR_SALT)PlayLicensing.verify(BASE64_PUBLIC_KEY).then((licensed) => {
if (licensed === true) {
// app was purchased from Google Play
} else if (licensed === false) {
// app was not purchased from Google Play
} else {
// verification failed, retry later
}
});
FAQs
Adds [Client-Side License Verification](https://developer.android.com/google/play/licensing/client-side-verification) to React Native applications. Works on both Android and iOS, but only verifies licenses on Android.
We found that @icehunter/react-native-play-licensing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.