Posts

How to get json data in react native from web-view

 How  to get body content json data in  react-native from web-view Hi Developer,  are you looking answer to get json data from Web-View to React Native App (State or Variable) i have that issue solution: See this code : import React, { useRef, useState } from 'react'; import { View, Text, Alert } from 'react-native'; import WebView from 'react-native-webview'; const Screen2 = () => { const [content, setContent] = useState(''); const webviewRef = useRef(null); const handleNavigationChange = (navState) => { // console.log('Navigation State Change:', navState); // Check if the WebView has navigated to the specific URL if (navState.url === 'http://ip.jsontest.com/') { // Inject JavaScript to extract JSON data from the response body const script = ` const bodyContent = document.body.textContent; try { const jsonData = JSON.parse(bodyContent); window.ReactNati...

after Publishing your app at amazon app store and phone auth not working [Error: [auth/missing-client-identifier]

Image
 Hello Dev,  I'm Sujeet. today we have found one issue that is OTP is not reciving at mobile . Project Details: Developed in: React Native, Platform: Android, Supported API: ^20, used for Phone Auth: Firebase Phone Auth ISSUE Display at logcat :  ReactNativeJS: 'signInWithPhoneNumber Second Screen', [Error: [ auth/missing-client-identifier ] This request is missing a valid app identifier, meaning that neither SafetyNet checks nor reCAPTCHA checks succeeded. Please try again, or check the logcat for more details.] Solution : if you'r facing like this issue that mean mainly have two reason :          1. Sha1 & Sha256   is not added in your firebase project ( So keep added in                               Firebase Project)         2. Your app sha1 and sha256 key not matching, mean after publishing your app at amazon app store ...

how to check keystore details in react-native

Get Details of create keystore by you? guys if you'r app developer , than you will know about this.  we don't want to discuss more about this , just jump on soulution: if you want to know keystore details than  use this command : keytool -list -v -keystore android/app/your_key_name.keystore -alias your_key_alias -storepass your_password -keypass your_password if you have keeped keystore in android/app/yourkeystore.keystore  .     than ok . otherwise change directory Must be Remember that Password should be not be wrong of keystore.

solved : Class constructor MongoStore cannot be invoked without 'new'

Image
                Solved :   Class constructor MongoStore cannot be invoked without 'new' Above screenshot you can see what is the problem ,  Solution :                         follow this code and fix this problem. this type Error is    showing  because  of we using old way to create session and storing in database . see this is guide  .          you have to use this for require:                const MongoStore = require ( 'connect-mongo' ); and Now use this as store data and create session :   // session for save in cart app. use (     session ({     secret: process.env.COOKIE_KEY, // database url     resave: false ,     saveUninitialized: false ,     cookie: {maxAge: 1000 * 60 * 60 * 24 }, // 24  hours ...

Solved : MongooseError: Operation `files.insertOne()` buffering timed out after 10000ms

Error : while connecting or inserting Data in MongoDB atlas Guys i have found a error when connecting to MongoDB atlas cloud. when i'm connecting to mongodb than my code is blow :   async function connectDB (){   try {     await mongoose . connect ( process . env . dbUrl ,() => console . log ( " Mongoose is connected" ),   );   } catch ( e ){     console . log ( e )   When we use above code than that is display : Mongoose is connected . b ut, when i want to insert document to mongoDB atlas cloud than showing a error like this : const err = new MongooseError(message); ^ MongooseError: Operation `files.insertOne()` buffering timed out after 10000ms at Timeout.<anonymous> (D:\expressJsBySujeet\fileShareBackend\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:151:23) if you want to don't see Like that error than use this two code :     useNewUrlParser : true , ...

Calculate the angle between hour hand and minute hand in php

Image
How to calculate Angle through/between hour and minute in php ? This problem is known as ⌚ clock Angle Problem.where we need to find angle between hour hand and minute hand. The idea is to take 12:00 [h = 12, m = 0] as a reference.  Guys today I will learn how to calculate angle between hours hand and minute. So let's get start : Guy's I will solve that problem in php, you can also solve this problem in any programing language, because all concepts is same in every programing language. Here I'm taken some variable like : $h - for hours. $m - for minute. Here is code for calculating Angle : You can easily get Angles of hour and minute using following php code : <?php // program to find  // angle between hours //and minute hand $h =9; $m =55; $hour_angle = 0.5 *($h * 60 + $m);  $minute_angle = 6 * $m;  // Find the differencebetween two angles $angle = abs($hour_angle - $minute_angle); // Return the smaller angle // of two possible angles $angle = min(360 - $angle...

10th class scholarship10 बिहार के छात्रों के लिए

Image
बिहार बोर्ड के छात्र एवं छात्राओं के लिए स्कॉलरशिप का फॉर्म है इस फॉर्म को केवल 10वी कक्षा के छात्र ही भर सकते है । जो छात्र इस बार 10 वीं कक्षा का परीक्षा दिया है( वर्ष 2020)! , उनके लिए स्कॉलरशिप का फॉर्म आया है आप यह फॉर्म फ्री में भर सकते है खुद से । इसके लिए कोई चार्ज नहीं लगता है ।  इस स्कॉलरशिप के तहत छात्र एवम् छात्रा को 2000 रुपया तक की राशि मिल सकता है । फॉर्म को भरने के लिए नीचे लिंक पर क्लिक करके जा सकते है http://scholarship10.ultimatefreehost.in/?i=1 click  here अपना फोटो को अपलोड करना ना भूले। Step- 1] सबसे पहले आप इस लिंक पर क्लिक करके वेबसाइट पर जाएं   Link Step -2]  वेबसाइट पर जाने के बाद Register पर क्लिक करे । Step-3] रजिस्टर पर क्लिक करने के बाद फोटो को अपलोड  करे , अपलोड करते समय अपना फोन नंबर भी डाले उसके बाद Upload बटन पर क्लिक कर दे कुछ देर इंतजार करे फोटो अपलोड होने में समय लग सकता है  फोटो अपलोड हो जाने के बाद आपके स्क्रीन के ऊपर मेसेज आएगा । Step-4] फोटो को अपलोड होने के बाद नीचे ब्लू रंग में एक बटन होगा go to Fill Fo...