Код: Выделить всё
attempt to invoke virtual method 'java.lang.string
android.content.intent.getaction()' on a null object reference
Мой код
Код: Выделить всё
ReceiveSharingIntent.getReceivedFiles(files => {
console.log('SharedData');
if(files) {
console.log(files);
}
},
(error) => {
console.log('Error receiving shared data:', error);
ReceiveSharingIntent.clearReceivedFiles();
},
'com.myapp' // App Group identifier
);
ReceiveSharingIntent.clearReceivedFiles();
Подробнее здесь: https://stackoverflow.com/questions/790 ... roid-conte
Мобильная версия