The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Mar 6, 2018
Company: Bodega LLC

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)

 
#2
People who like this: 0 Yes / 0 No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

There is no ComObject on Mobile platform

 
#3
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Mar 6, 2018
Company: Bodega LLC

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"?

 
#4
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Mar 6, 2018
Company: Bodega LLC

I found the way :)

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

 
#5
People who like this: 0 Yes / 0 No
Active user
Rating: 5
Joined: Mar 29, 2016
Company: DND YAZILIM LTD.

Dear eyüp yılmaz,

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

 
#6
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Mar 6, 2018
Company: Bodega LLC

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.

 
#7
People who like this: 0 Yes / 0 No
Interested
Rating: 16
Joined: Dec 4, 2017
Company:

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

1C Company support team
 
#8
People who like this: 0 Yes / 0 No
Just came
Rating: 1
Joined: Oct 30, 2012
Company: DND YAZILIM LTD.

Dear Eyup Yılmaz,

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

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.

/* Ультимативный фикс для всех уровней заголовков в контенте */ .workarea h1, .workarea h2, .workarea h3, .workarea h4, .workarea h5, .workarea h6, .content h1, .content h2, .content h3, .content h4, .content h5, .content h6, div[id*="content"] h5, div[class*="content"] h5 { display: block !important; font-weight: 700 !important; color: #005aa0 !important; /* Наш фирменный синий */ text-transform: none !important; margin-top: 30px !important; margin-bottom: 15px !important; line-height: 1.2 !important; font-family: Arial, sans-serif !important; } /* Принудительные размеры в пикселях (чтобы не зависеть от % или em) */ .workarea h1, .content h1 { font-size: 28px !important; } .workarea h2, .content h2 { font-size: 24px !important; } .workarea h3, .content h3 { font-size: 21px !important; } .workarea h4, .content h4 { font-size: 19px !important; } .workarea h5, .content h5 { font-size: 18px !important; } /* Для 5 решеток ##### */ .workarea h6, .content h6 { font-size: 16px !important; } /* Фикс, если Битрикс добавил лишние отступы перед списками после заголовка */ .workarea h5 + ul, .content h5 + ul { margin-top: 5px !important; }