badfeatures / react-native-nearby-api Goto Github PK
View Code? Open in Web Editor NEWReact Native wrapper around the Google Nearby Messages API SDK
License: Other
React Native wrapper around the Google Nearby Messages API SDK
License: Other
I'm researching packages right now to put together a walkie-talkie type application.
Would I be able to connect multiple devices together using this library and push audio/video through them via https://github.com/oney/react-native-webrtc?
Nearby's use of radios and sensors will cause your app to consume battery at 2.5-3.5 times the normal rate. To reduce battery usage, observe the following recommendations.
We’ve provided a set of standard assets that you can use to represent Nearby in your app. Use only the following approved icons when referring to Nearby.
Hello team,
i am running this plugin in Android device 8.0 and i configure all steps as per given document and i run application in android every time i get error message like Publish Failed : FORBIDDEN
help me for above issue
I tried to use the react-native-nearby-api but it's not installing.
I tried these commands:
yarn react-native-nearby-api
npm install react-native-nearby-api
But none of them is working, and if I go to npm website there is a 404. How it's possible? Thank you
Hi
I am trying to identify what are the minimum versions of Android and iOS that can use these package ... where can i find some info related to this?
thanks
Tried to use the module but doesn't seem to work with my config.
Any ideas?
MainApplication.java:
import com.facebook.react.ReactApplication;
import com.badfeatures.nearby.RNNearbyApiPackage;
import fr.bamlab.rnimageresizer.ImageResizerPackage;
import com.imagepicker.ImagePickerPackage;
import io.invertase.firebase.RNFirebasePackage;
import io.invertase.firebase.messaging.RNFirebaseMessagingPackage;
import io.invertase.firebase.analytics.RNFirebaseAnalyticsPackage;
//import io.invertase.firebase.admob.RNFirebaseAdMobPackage;
import com.mapbox.rctmgl.RCTMGLPackage;
import org.devio.rn.splashscreen.SplashScreenReactPackage;
import com.idehub.Billing.InAppBillingBridgePackage;
import com.react.rnspinkit.RNSpinkitPackage;
import com.RNFetchBlob.RNFetchBlobPackage;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import com.rnfs.RNFSPackage;
import com.rnziparchive.RNZipArchivePackage;
import com.tradle.react.UdpSocketsModule;
import com.peel.react.TcpSocketsModule;
import com.bitgo.randombytes.RandomBytesPackage;
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.corbt.keepawake.KCKeepAwakePackage;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.wix.interactable.Interactable;
import com.facebook.react.modules.network.ReactCookieJarContainer;
import com.facebook.stetho.Stetho;
import okhttp3.OkHttpClient;
import com.facebook.react.modules.network.OkHttpClientProvider;
import com.facebook.stetho.okhttp3.StethoInterceptor;
import java.util.concurrent.TimeUnit;
import java.util.Arrays;
import java.util.List;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNNearbyApiPackage(),
new ImageResizerPackage(),
new ImagePickerPackage(),
new RNFirebasePackage(),
new RNFirebaseMessagingPackage(),
new RNFirebaseAnalyticsPackage(),
//new RNFirebaseAdMobPackage(),
new RCTMGLPackage(),
new SplashScreenReactPackage(),
new InAppBillingBridgePackage(),
new RNSpinkitPackage(),
new RNFetchBlobPackage(),
new RNDeviceInfo(),
new RNFSPackage(),
new RNZipArchivePackage(),
new UdpSocketsModule(),
new TcpSocketsModule(),
new RandomBytesPackage(),
new ReactNativeConfigPackage(),
new VectorIconsPackage(),
new KCKeepAwakePackage(),
new Interactable()
);
}
};
settings.gradle:
include ':react-native-nearby-api'
project(':react-native-nearby-api').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-nearby-api/android')
android/app/build.gradle:
dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile 'com.android.support:multidex:1.0.1'
compile project(':react-native-nearby-api')
compile project(':react-native-image-resizer')
compile project(':react-native-image-picker')
compile(project(':react-native-firebase')) {
transitive = false
}
compile "com.google.firebase:firebase-core:11.6.0"
compile "com.google.firebase:firebase-messaging:11.6.0"
compile "com.google.firebase:firebase-analytics:11.6.0"
//compile "com.google.firebase:firebase-ads:11.6.0"
compile project(':mapbox-react-native-mapbox-gl')
compile project(path: ':react-native-interactable')
compile project(':react-native-splash-screen')
compile project(':react-native-billing')
compile 'com.facebook.stetho:stetho:1.3.1'
compile 'com.facebook.stetho:stetho-okhttp3:1.3.1'
compile project(':react-native-spinkit')
compile project(':react-native-fetch-blob')
compile (project(':react-native-device-info')) {
exclude group: "com.google.android.gms"
}
compile project(':react-native-fs')
compile project(':react-native-zip-archive')
compile project(':react-native-udp')
compile project(':react-native-tcp')
compile project(':react-native-randombytes')
compile project(':react-native-config')
compile project(':react-native-vector-icons')
compile project(':react-native-keep-awake')
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:0.51.0" // From node_modules
// Firebase dependencies
compile ("com.google.android.gms:play-services-gcm:11.6.0") {
force = true;
}
compile ("com.google.android.gms:play-services-base:11.6.0") {
force = true;
}
}
Hi,
I'm pretty new to RN development and have limited knowledge of IOS or Android.
Everything was well with the plugin and we have launched few times but somehow(quite suddenly) we are unable to build with develop and release schema.
I've tried setting Compile Source As to objective c++ as suggested here without much success
react-native-google-signin/google-signin#361
I've created a new library for the Nearby API here: https://github.com/mrousavy/react-native-google-nearby-messages because apparently this one is dead. It uses the latest version, supports autolinking and was made with Swift.
I have ran ./renameLogger.sh
to resolve this issue but did not get to work as React-Native version 0.60+
do not contains the third-party
folder. see details below;
"dependencies": {
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-nearby-api": "0.0.5"
},
Currently running the example provided here. this works for IOS & Android on 0.56
of react-native.
Thanks.
Allow users to check if they are currently publishing.
Google Play services 7.8.0 or higher
Android 2.3 or higher
I get the following error when building the example app. Can't really figure where the symbols are beig duplicated. Any pointers?
duplicate symbol __ZN6google10AddLogSinkEPNS_7LogSinkE in:
/Users/user/Library/Developer/Xcode/DerivedData/example-cgaryrzrmdqdxlhdvluwfugfneku/Build/Products/Debug-iphoneos/libReact.a(logging.o)
/Users/user/Downloads/drivers/react-native-nearby-api/example/ios/Pods/NearbyMessages/Libraries/libGNSMessages.a(logging.o)
duplicate symbol __ZN6google13RemoveLogSinkEPNS_7LogSinkE in:
/Users/user/Library/Developer/Xcode/DerivedData/example-cgaryrzrmdqdxlhdvluwfugfneku/Build/Products/Debug-iphoneos/libReact.a(logging.o)
/Users/user/Downloads/drivers/react-native-nearby-api/example/ios/Pods/NearbyMessages/Libraries/libGNSMessages.a(logging.o)
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm not sure if you intend on supporting windows, but I just thought I'd let you know this package fails when installing it into your project on windows.
It is a similar error to other packages that don't support windows. When running npm install
or yarn install
within your project on windows it throws the following error:
'scripts' is not recognized as an internal or external command," on windows.
The fix seems to be switching to a node script for running scripts/install.js
as seen here. However looking at your install.js function, it probably would need some changes to be executable on windows.
Is this module implements only Messages API or also Connections API (https://developers.google.com/nearby/connections/overview) ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.