unable to write to firebase databaseShip an application with a databaseBug: onNewIntent not called for singleTop activity with Intent.FLAG_ACTIVITY_NEW_TASKHow to store and view images on firebase?setText on button from another activity androidAdding Social Media Share Logic From Firebase in AndroidActivity can still call unbind service method. Is it normal?java.lang.NullPointerException when invoking onLoadFinished()Firebase API initialisation failure - Not updating the list view from firebaseSearch Firestore query don't show data in RecycleViewUnable to receive push notification from firebase cloud messaging

Disambiguation of "nobis vobis" and "nobis nobis"

Architectural feasibility of a tiered circular stone keep

How to gently end involvement with an online community?

How would a Creature that needs to be seen by Humans evolve?

Improving Performance of an XY Monte Carlo

Showing that the limit of non-eigenvector goes to infinity

How do thermal tapes transfer heat despite their low thermal conductivity?

Was it ever possible to target a zone?

Who was president of the USA?

Can RMSE and MAE have the same value?

Would the Republic of Ireland and Northern Ireland be interested in reuniting?

Why doesn't 'd /= d' throw a division by zero exception?

Is gzip atomic?

Localization at a multiplicative set is a localization at a prime ideal if local

Why is 7 Bd3 in the Cambridge Springs QGD more often met with 7...Ne4 than 7...dxc4?

Why isn't "I've" a proper response?

Why do all fields in a QFT transform like *irreducible* representations of some group?

Are the players on the same team as the DM?

Why is there so little discussion / research on the philosophy of precision?

Are there any elected officials in the U.S. who are not legislators, judges, or constitutional officers?

Read file lines into shell line separated by space

Did the British navy fail to take into account the ballistics correction due to Coriolis force during WW1 Falkland Islands battle?

pgfplots: Missing one group of bars

How can I unambiguously ask for a new user's "Display Name"?



unable to write to firebase database


Ship an application with a databaseBug: onNewIntent not called for singleTop activity with Intent.FLAG_ACTIVITY_NEW_TASKHow to store and view images on firebase?setText on button from another activity androidAdding Social Media Share Logic From Firebase in AndroidActivity can still call unbind service method. Is it normal?java.lang.NullPointerException when invoking onLoadFinished()Firebase API initialisation failure - Not updating the list view from firebaseSearch Firestore query don't show data in RecycleViewUnable to receive push notification from firebase cloud messaging






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm making an app which can write to firebase database on button click.
The app is working on emulator but it's not working on my physical device.
Here's the main activity code:



public class MainActivity extends AppCompatActivity {
private Firebase fled1;
Button on;
Button off;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Firebase.setAndroidContext(this);

on= findViewById(R.id.on);
off= findViewById(R.id.off);

on.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View view)

fled1 = new Firebase("https://iotapp-6y3n8.firebaseio.com/");
Firebase fled1Child = fled1.child("S1");
fled1Child.setValue("1");

);

off.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View view)
fled1 = new Firebase("https://iotapp-6y3n8.firebaseio.com/");
Firebase fled1Child = fled1.child("S1");
fled1Child.setValue("0");

);



Here's my manifest file I have added all the permissions required:



 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lalitahuja.iotbutton">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.example.lalitahuja.iotbutton.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>


Here's the build Gradle file:



apply plugin: 'com.android.application'

android
compileSdkVersion 28
defaultConfig
applicationId "com.example.lalitahuja.iotbutton"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-database:16.1.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.7'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.firebase:firebase-client-android:2.5.2'

apply plugin: 'com.google.gms.google-services'


The error I'm getting:



E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 1
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 2
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 3
W/MessengerIpcClient: Received response for unknown request: 3
E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement
E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found.
W/MessengerIpcClient: Received response for unknown request: 1
W/MessengerIpcClient: Received response for unknown request: 2










share|improve this question





















  • 3





    Why are you using a really old version of the Firebase SDK? com.firebase:firebase-client-android:2.5.2 in addition to the newer one com.google.firebase:firebase-database:16.1.0? Don't use the old one.

    – Doug Stevenson
    Mar 27 at 18:25











  • @DougStevenson I updated the firebase sdk but I'm still getting the E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE Error any idea what might be causing this?

    – user10851894
    Mar 28 at 2:59

















0















I'm making an app which can write to firebase database on button click.
The app is working on emulator but it's not working on my physical device.
Here's the main activity code:



public class MainActivity extends AppCompatActivity {
private Firebase fled1;
Button on;
Button off;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Firebase.setAndroidContext(this);

on= findViewById(R.id.on);
off= findViewById(R.id.off);

on.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View view)

fled1 = new Firebase("https://iotapp-6y3n8.firebaseio.com/");
Firebase fled1Child = fled1.child("S1");
fled1Child.setValue("1");

);

off.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View view)
fled1 = new Firebase("https://iotapp-6y3n8.firebaseio.com/");
Firebase fled1Child = fled1.child("S1");
fled1Child.setValue("0");

);



Here's my manifest file I have added all the permissions required:



 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lalitahuja.iotbutton">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.example.lalitahuja.iotbutton.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>


Here's the build Gradle file:



apply plugin: 'com.android.application'

android
compileSdkVersion 28
defaultConfig
applicationId "com.example.lalitahuja.iotbutton"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-database:16.1.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.7'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.firebase:firebase-client-android:2.5.2'

apply plugin: 'com.google.gms.google-services'


The error I'm getting:



E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 1
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 2
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 3
W/MessengerIpcClient: Received response for unknown request: 3
E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement
E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found.
W/MessengerIpcClient: Received response for unknown request: 1
W/MessengerIpcClient: Received response for unknown request: 2










share|improve this question





















  • 3





    Why are you using a really old version of the Firebase SDK? com.firebase:firebase-client-android:2.5.2 in addition to the newer one com.google.firebase:firebase-database:16.1.0? Don't use the old one.

    – Doug Stevenson
    Mar 27 at 18:25











  • @DougStevenson I updated the firebase sdk but I'm still getting the E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE Error any idea what might be causing this?

    – user10851894
    Mar 28 at 2:59













0












0








0








I'm making an app which can write to firebase database on button click.
The app is working on emulator but it's not working on my physical device.
Here's the main activity code:



public class MainActivity extends AppCompatActivity {
private Firebase fled1;
Button on;
Button off;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Firebase.setAndroidContext(this);

on= findViewById(R.id.on);
off= findViewById(R.id.off);

on.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View view)

fled1 = new Firebase("https://iotapp-6y3n8.firebaseio.com/");
Firebase fled1Child = fled1.child("S1");
fled1Child.setValue("1");

);

off.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View view)
fled1 = new Firebase("https://iotapp-6y3n8.firebaseio.com/");
Firebase fled1Child = fled1.child("S1");
fled1Child.setValue("0");

);



Here's my manifest file I have added all the permissions required:



 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lalitahuja.iotbutton">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.example.lalitahuja.iotbutton.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>


Here's the build Gradle file:



apply plugin: 'com.android.application'

android
compileSdkVersion 28
defaultConfig
applicationId "com.example.lalitahuja.iotbutton"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-database:16.1.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.7'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.firebase:firebase-client-android:2.5.2'

apply plugin: 'com.google.gms.google-services'


The error I'm getting:



E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 1
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 2
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 3
W/MessengerIpcClient: Received response for unknown request: 3
E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement
E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found.
W/MessengerIpcClient: Received response for unknown request: 1
W/MessengerIpcClient: Received response for unknown request: 2










share|improve this question
















I'm making an app which can write to firebase database on button click.
The app is working on emulator but it's not working on my physical device.
Here's the main activity code:



public class MainActivity extends AppCompatActivity {
private Firebase fled1;
Button on;
Button off;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Firebase.setAndroidContext(this);

on= findViewById(R.id.on);
off= findViewById(R.id.off);

on.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View view)

fled1 = new Firebase("https://iotapp-6y3n8.firebaseio.com/");
Firebase fled1Child = fled1.child("S1");
fled1Child.setValue("1");

);

off.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View view)
fled1 = new Firebase("https://iotapp-6y3n8.firebaseio.com/");
Firebase fled1Child = fled1.child("S1");
fled1Child.setValue("0");

);



Here's my manifest file I have added all the permissions required:



 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lalitahuja.iotbutton">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.example.lalitahuja.iotbutton.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>


Here's the build Gradle file:



apply plugin: 'com.android.application'

android
compileSdkVersion 28
defaultConfig
applicationId "com.example.lalitahuja.iotbutton"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-database:16.1.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.7'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.firebase:firebase-client-android:2.5.2'

apply plugin: 'com.google.gms.google-services'


The error I'm getting:



E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 1
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 2
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/MessengerIpcClient: Timing out request: 3
W/MessengerIpcClient: Received response for unknown request: 3
E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement
E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found.
W/MessengerIpcClient: Received response for unknown request: 1
W/MessengerIpcClient: Received response for unknown request: 2







android firebase firebase-realtime-database






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 18:26









Doug Stevenson

106k12 gold badges122 silver badges148 bronze badges




106k12 gold badges122 silver badges148 bronze badges










asked Mar 27 at 18:17









user10851894user10851894

104 bronze badges




104 bronze badges










  • 3





    Why are you using a really old version of the Firebase SDK? com.firebase:firebase-client-android:2.5.2 in addition to the newer one com.google.firebase:firebase-database:16.1.0? Don't use the old one.

    – Doug Stevenson
    Mar 27 at 18:25











  • @DougStevenson I updated the firebase sdk but I'm still getting the E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE Error any idea what might be causing this?

    – user10851894
    Mar 28 at 2:59












  • 3





    Why are you using a really old version of the Firebase SDK? com.firebase:firebase-client-android:2.5.2 in addition to the newer one com.google.firebase:firebase-database:16.1.0? Don't use the old one.

    – Doug Stevenson
    Mar 27 at 18:25











  • @DougStevenson I updated the firebase sdk but I'm still getting the E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE Error any idea what might be causing this?

    – user10851894
    Mar 28 at 2:59







3




3





Why are you using a really old version of the Firebase SDK? com.firebase:firebase-client-android:2.5.2 in addition to the newer one com.google.firebase:firebase-database:16.1.0? Don't use the old one.

– Doug Stevenson
Mar 27 at 18:25





Why are you using a really old version of the Firebase SDK? com.firebase:firebase-client-android:2.5.2 in addition to the newer one com.google.firebase:firebase-database:16.1.0? Don't use the old one.

– Doug Stevenson
Mar 27 at 18:25













@DougStevenson I updated the firebase sdk but I'm still getting the E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE Error any idea what might be causing this?

– user10851894
Mar 28 at 2:59





@DougStevenson I updated the firebase sdk but I'm still getting the E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE Error any idea what might be causing this?

– user10851894
Mar 28 at 2:59












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55384044%2funable-to-write-to-firebase-database%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55384044%2funable-to-write-to-firebase-database%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript