Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Firebase database read & write on mobile

Forum

Search UsersRules
Firebase database read & write on mobile
#1
Active user
Points:: 0
Joined:: Mar 6, 2018

Hello!

I can use Firebase database and push notifications on PC. But same methods not working on mobile version...
Here is the codes which is giving error...

Code
Request = ApplicationAddress + Resource + Authorization; 
   WinHttp = New COMObject ("WinHttp.WinHttpRequest.5.1"); 
   WinHttp.Option (2, "utf-8"); 
   //WinHttp.SetProxy(2,"SERVER: PORT ");  // if you are working through a proxy 
   WinHttp.Open (Method, Request, 0); 
   WinHttp.SetRequestHeader ("Accept-Language", "en"); 
   WinHttp.SetRequestHeader ("Accept-Charset", "utf-8"); 
   WinHttp.setRequestHeader ("Content-Language", "en"); 
   WinHttp.setRequestHeader ("Content-Charset", "utf-8"); 
   WinHttp.setRequestHeader ("Content-Type", "application / json; charset = utf-8"); 
   WinHttp.Send (); 
   res = WinHttp.ResponseText();



And here is the error

Code

CommonModule.FireBase.Module(12,17)}: Type is not defined (COMObject)
  WinHttp = New <<?>>COMObject ("WinHttp.WinHttpRequest.5.1");  (Verification: Mobile application - server)
{CommonModule.FireBase.Module(39,17)}: Type is not defined (COMObject)
  WinHttp = New <<?>>COMObject ("WinHttp.WinHttpRequest.5.1");  (Verification: Mobile application - server)
{CommonModule.FireBase.Module(76,16)}: Type is not defined (COMObject)
   WinHttp = New <<?>>COMObject ("WinHttp.WinHttpRequest.5.1");  (Verification: Mobile application - server)

Profile
#2
Interested
Points:: 15
Joined:: Oct 27, 2011

There is no ComObject on Mobile platform

Profile
#3
Active user
Points:: 0
Joined:: Mar 6, 2018

If i am not mistaken; GET and POST methods are using for "firebase" communications. Is there any other way instead of "WinHttp.WinHttpRequest.5.1" and "ComObject"?

Profile
#4
Active user
Points:: 0
Joined:: Mar 6, 2018

I found the way :)

https://1c-dn.com/forum/forum1/topic1767/?sphrase_id=99819#message11362

Profile
#5
Active user
Points:: 0
Joined:: Mar 29, 2016

Dear eyüp yılmaz,

I'm interested in firebase on 1C. What are you doing using firebase?

Profile
#6
Active user
Points:: 0
Joined:: Mar 6, 2018

Data exchange with mobile devices ,pushnotifications and locations real time(i am planing). Before i used DataExchangePlan, but i get errors whenever i wanted to change interfaces of server part. So decided to exchange data from firebase.

Profile
#7
Interested
Points:: 0
Joined:: Dec 4, 2017

For more information on how to use Firebase Cloud Messaging (FCM) for sending push notifications in 1C:Enterprise platform 8.3.13, refer to the updated article:

https://1c-dn.com/library/mobile_application_development/working_with_user­_notifications_in_mobile_applications/

Best regards,
Vladimir Gurov

Profile
#8
Just came
Points:: 0
Joined:: Oct 30, 2012

Dear Eyup Yılmaz,

Thanks for that info. You can use web service for data exchange.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.