obsidian-calendar-plugin icon indicating copy to clipboard operation
obsidian-calendar-plugin copied to clipboard

Unable to enable the plugin on mobile (Android)

Open 6-AND-9 opened this issue 4 years ago • 13 comments
trafficstars

Basically, I installed Obsidian on an Android phone and tried to install & enable the Calendar plugin. Installing went well, but I am unable to enable it. Instead, it prints out: Failed to load plugin calendar.

Version is 1.5.10, Obsidian mobile version: latest.

How can I debug this and what could be the reason?

6-AND-9 avatar Jul 14 '21 16:07 6-AND-9

OK, I figured out how to debug the plugin through chrome://inspect, and this is the console log:

/favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found) app.js:1 Obsidian Developer Console app.js:1 Plugin failure: calendar SyntaxError: Unexpected token . at eval () at app.js:1 at t. (app.js:1) at app.js:1 at Object.next (app.js:1) at s (app.js:1) (anonymous) @ app.js:1 app.js:1 Plugin failure: calendar SyntaxError: Unexpected token . at eval () at app.js:1 at t. (app.js:1) at app.js:1 at Object.next (app.js:1) at s (app.js:1) (anonymous) @ app.js:1 (anonymous) @ app.js:1 (anonymous) @ app.js:1 a @ app.js:1 app.js:1 Plugin failure: calendar SyntaxError: Unexpected token . at eval () at app.js:1 at t. (app.js:1) at app.js:1 at Object.next (app.js:1) at s (app.js:1) (anonymous) @ app.js:1 (anonymous) @ app.js:1 (anonymous) @ app.js:1 a @ app.js:1 app.js:1 Plugin failure: calendar SyntaxError: Unexpected token . at eval () at app.js:1 at t. (app.js:1) at app.js:1 at Object.next (app.js:1) at s (app.js:1) (anonymous) @ app.js:1 app.js:1 Plugin failure: calendar SyntaxError: Unexpected token . at eval () at app.js:1 at t. (app.js:1) at app.js:1 at Object.next (app.js:1) at s (app.js:1) (anonymous) @ app.js:1 (anonymous) @ app.js:1 (anonymous) @ app.js:1 a @ app.js:1 Promise.then (async) l @ app.js:1 (anonymous) @ app.js:1 o @ app.js:1 t.enablePlugin @ app.js:1 (anonymous) @ app.js:1 (anonymous) @ app.js:1 (anonymous) @ app.js:1 (anonymous) @ app.js:1 o @ app.js:1 t.enablePluginAndSave @ app.js:1 (anonymous) @ app.js:1 (anonymous) @ app.js:1 (anonymous) @ app.js:1 (anonymous) @ app.js:1 o @ app.js:1 (anonymous) @ app.js:1 t.setValue @ app.js:1 t.onClick @ app.js:1

What does this mean?!

6-AND-9 avatar Jul 16 '21 16:07 6-AND-9

The same thing happens with the beta as well:

/favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found)
app.js:1 Obsidian Developer Console
app.js:1 Plugin failure: calendar-beta SyntaxError: Unexpected token .
    at eval (<anonymous>)
    at app.js:1
    at t.<anonymous> (app.js:1)
    at app.js:1
    at Object.next (app.js:1)
    at s (app.js:1)
(anonymous) @ app.js:1
app.js:1 Plugin failure: calendar-beta SyntaxError: Unexpected token .
    at eval (<anonymous>)
    at app.js:1
    at t.<anonymous> (app.js:1)
    at app.js:1
    at Object.next (app.js:1)
    at s (app.js:1)
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
a @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
o @ app.js:1
t.enablePlugin @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
o @ app.js:1
t.enablePluginAndSave @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
o @ app.js:1
(anonymous) @ app.js:1
t.setValue @ app.js:1
t.onClick @ app.js:1

6-AND-9 avatar Jul 16 '21 16:07 6-AND-9

I do not have this bug on Huawei P 30 Pro, Samsung tab A 9.7, Tab Lite S9 but have it on Samsung Galaxy S8.

Running latest version.

psydere avatar Aug 27 '21 06:08 psydere

I have two devices with Android 11, a Pixel 3XL and a new Pixel 5a. The plugin has been working fine on the 3, but it will not load on the 5a?

novakwh avatar Aug 27 '21 20:08 novakwh

I'm getting this problem on both mobile and desktop. The plugin just seems to have stopped working everywhere. I realize this thread is from a few years ago and only talks about the mobile version of obsidian, but this was the closest open issue describing my problem.

jonbobbly avatar Jan 21 '23 18:01 jonbobbly

same here ..... I did a fresh installation of obsidian on my ipad and now calendar and templater doesn't work anymore. I just get the message "failed to load plugin calendar"

Does anybody know how to get more infos? On Desktop I can enter the console, but not on mobile. Any ideas?

I think it is an issue of obsidian 1.4.1 (83) API 1.0.3

netfly avatar Jan 27 '23 07:01 netfly

Same here. Can't enable calendar plugin on my Android.

guihasparyk avatar Apr 10 '23 10:04 guihasparyk

Same here. I just got a new PC and after installing Obsidian (I use obsidian sync) everything works fine, except the calendar plugin. Also with "failed to load plugin calendar". But on my existing installations (PC, ipad and android phone) it still works.

Does anyone know anything about this?

KatharinaHille avatar Jun 08 '23 08:06 KatharinaHille

And I just realized that maybe it has something to do with Obsidian Sync? Because if I open a local Vault, then the calendar plugin works fine!

KatharinaHille avatar Jun 08 '23 08:06 KatharinaHille

Hello KatharinaHille, I've managed to get it to work by using BRAT plugin. Maybe it could work for you to.

guihasparyk avatar Jun 08 '23 09:06 guihasparyk

don't know what this is?

KatharinaHille avatar Jun 08 '23 13:06 KatharinaHille

But thanks for the tipp, I will look it up

KatharinaHille avatar Jun 08 '23 13:06 KatharinaHille

Morning KatharinaHille,

The BRAT plugin on Obsidian stands for Beta Reviewers Auto-update Tester. So it’s nothing but tool to become beta tester of any plugin that you chose. Some times, those beta may probably have already been fixed the bugs that you were experiencing (that was my case), but can come with more bugs (which is rare — also in my case.)

Just install the plugin and paste the GitHub link — of plugin you chose — on the BRAT settings (restart Obsidian) to get access to beta.

guihasparyk avatar Jun 11 '23 07:06 guihasparyk